A Guide to CMS Functions

Test Your Knowledge

Task: Insert a function without parameters

  1. Create a page in the Content perspective.
  2. Insert the function Composite.Pages.QuickSitemap on the page.
  3. Preview the page.

Task: Insert a function and set its required parameter

  1. Install the RSS Reader add-on from the System perspective.
  2. Create a page in the Content perspective.
  3. Insert the function Composite.Feeds.RssReader on the page.
  4. Set its required RSS Source parameter to some RSS feed.
  5. Preview the page.

Task: Override the default value of a parameter

  1. Edit the page where you have inserted Composite.Feeds.RssReader.
  2. Edit the function’s properties.
  3. Override the default value of the RSS List Length parameter setting it to a greater number, e.g. 10.
  4. Preview the page and check for the changes.

Task: Insert a function’s markup and modify a value

  1. Edit the page where you have inserted Composite.Feeds.RssReader and switch to its Source.
  2. Copy the function’s markup.
  3. Create another page and switch to its Source.
  4. Insert the copied function’s markup on the page between the <body> and </body> tags.
  5. Replace the values of the RSSSource and ListLength parameters with some other values.
  6. Preview the page and check for the changes.

Task: View information on functions

  1. In the Functions perspective, generate documentation for Composite.Xslt.Extensions functions.
  2. View the descriptions of the functions.
  3. View information on Composite.Feeds.RssReader.