Twitter App ShortenURL Function

From ADF Docs
Jump to: navigation, search


The twitterService component contains a few functions you can take advantage off in your custom scritps. One of these functions is the shortenURL function.


1. It is installed as part of the Twitter application's installation.


To set up a demo of the Follow Button custom element, follow these steps:

  • Create a new CFM file inside one of your subsite's customcf folder.
  • In this file add the following code:
  • Create a new page and place a Custom Script element on the page.
  • Click the 'Edit' button.
  • Select or type in the path to your new custom script.
  • Submit the changes to the page.
  • On the page you'll see the shortened URL, something like this: