Working with Functions

With CMS Functions you can reuse content across multiple pages as well as display dynamic or external content on a page.

To insert a function on a page:

  1. In the "Content" perspective, edit a page.
  2. On the page editor's toolbar, click "Insert" | "Function".
  3. In the "Select Function" window, expand "All Functions", and then the namespaces the function belongs to (e.g. "Composite.Pages").
  4. Select the function (e.g. "QuickSitemap") and click "OK".

If the function has required parameters, the "Function Properties" window will appear.

  1. In the "Function Properties" window, select a parameter (on the left).
  2. Specify its value in the Parameter value field (on the right).
  3. Click "OK".

You can create and use a Visual function to present the dynamic data of a specific type on a page:

  1. In the "Functions" perspective, select "Visual Functions".
  2. On the toolbar, click "Add Visual Function".
  3. In the "Add Visual Function" window, select the "Data type" and click "Next".
  4. If necessary, change the "Function name" and "Function namespace".
  5. Click "Finish".
  6. Now in the "Content" perspective, edit a page.
  7. Insert the Visual function.

Read more on functions

thumbnail

Functions

CMS functions are building blocks of your website. Regardless the technology behind them (Razor, XSLT, C# etc), you can simply and uniformly use them on pages and markup. They allow you to reuse content across the website, display dynamic content and integrate external functionality on the website.
thumbnail

Visual Functions

Visual functions are a quick and convenient way of presenting dynamic data of a specific type on a page. Creating a Visual function requires no specific skills in programming or editing markup.