4 - Script Reference
Last updated on 4/22/2014
Adding a Script
Enter and store scripts in this centralized location for use in articles throughout your website. Scripts can be attached to articles by using the article's Scripts tab or called with short code.
- Click the Scripts item in the HTML list.
- Click Add New Script and complete the following fields:
- Active - Select Active to make the script active on the website.
- Name - Give the script a name in the Name field.
- Anchor to Tags – DEPRECATED – do not use.
- In the Scripts tab of an item, such as article, choose the appropriate script/s (up to three) from the Script fields at the bottom of the page.
- Save and view website to ensure it is working correctly.
Using Short Code to Embed Scripts
- Enter ( ( script|scriptname ) ) in body text to embed scripts in your website.
- The name must match the name in the Scripts item in the HTML list and the code syntax must be exact or it will not work.
|Short code syntax||( ( script|your script name ) )|
|Considerations||When calling a script in short code, the name entered in the code must exactly match the script name in Scripts or it will not work.|
(these examples are illustrative only and should not be used on your website)
|( ( script|ppal-buy-widget ) )|
|( ( script|youtube-demo ) )|
|( ( script|map-stadium ) )|
|( ( script|cnn-feed ) )|
|( ( script|rss-feed ) )|