Thursday 20 May 2010

Method of calling Template CSElement and SiteEntry assets

How does your code call template, CSElement, and SiteEntry assets?

  • Because a SiteEntry is a pagelet, you use the render:satellitepage tag to call SiteEntry assets from within your element code.
  • Because a CSElement is an element, you use the render: callelement tag to call CSElement assets from within your element code.
  • Because a template is both an element and a page name, you can use either of the above, although typically the render: calltemplate tag is designed to be used for templates. It encapsulates the functionality of render:satellitepage and render:calleelement as well as other features, such as parameter validation.

No comments:

Post a Comment