A Guide to CMS Functions
Test Your Knowledge
Task: Insert a function without parameters
- Create a page in the Content perspective.
- Insert the function Composite.Pages.QuickSitemap on the page.
- Preview the page.
Task: Insert a function and set its required parameter
- Install the RSS Reader add-on from the System perspective.
- Create a page in the Content perspective.
- Insert the function Composite.Feeds.RssReader on the page.
- Set its required RSS Source parameter to some RSS feed.
- Preview the page.
Task: Override the default value of a parameter
- Edit the page where you have inserted Composite.Feeds.RssReader.
- Edit the function’s properties.
- Override the default value of the RSS List Length parameter setting it to a greater number, e.g. 10.
- Preview the page and check for the changes.
Task: Insert a function’s markup and modify a value
- Edit the page where you have inserted Composite.Feeds.RssReader and switch to its Source.
- Copy the function’s markup.
- Create another page and switch to its Source.
- Insert the copied function’s markup on the page between the <body> and </body> tags.
- Replace the values of the RSSSource and ListLength parameters with some other values.
- Preview the page and check for the changes.
Task: View information on functions
- In the Functions perspective, generate documentation for Composite.Xslt.Extensions functions.
- View the descriptions of the functions.
- View information on Composite.Feeds.RssReader.