]> Root template tags These tags are the root elements of a layout template.

Root element of a template. Generates the <html> root element.

cms site

Root element for generating a HTML fragment instead of a complete HTML document.

This element allows it to include template fragments into a template. The element has two attributes. The file attribute is mandatory and contains the path the fragment to include, relative to the template directory. The internal attribute is optional. If set to true the fragment is loaded from the internal template directory.

For example <include file="fragments/footer.xml"< will include the file templates/fragments/footer.xml. If the internal attribute is set to true the file foundry/templates/fragments/footer.xml would be included.

An fragment template file included using this element using this element must contain a fragment-layout element as root.

Path of the file to include, relative to the templates directory.

If set to true the template fragment file is loaded from the internal template directory.

The layout node to use. Defaults the the current node.

The attributes to copy separated by an empty space. For example: autofocus disabled form formaction formenctype formmethod formnovalidate formtarget name type value.

A helper template for copying attributes from the layout tree to the result tree.

The layout node to use. Defaults the the current node.

Helper template for copying data- attributes from the the layout XML to the HTML result tree.

http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes

Variant of foundry:gen-src-url without the parameters string parameter.

The raw URL to process.

Parameters to append to the URL.

The processed URL.

Processes a given URL for use in the src attribute of an audio, img or video element. The function distigushes between this cases:

The URL starts with http:// or https://
In this case the URL is threated as an absolute URL pointing to a resource outside of CCM. If any parameters are passed to the function they are appended to the URL.
The URL starts with a slash (/)
In this case the URL points to a resource managed by the CCM which also manages the theme. In this case the URL is prefixed with the dispatcher-prefix and the parameters, if any, are appended.
Other cases
If none of the two other cases match the URL points to a URL in the theme. In this case the URL is processed by the gen-path function. The parameters, if any are appended.

If parameters are passed to this function they are appended to the URL. The parameters are passed as string formatted as URL parameters, for example foo=hello&bar=world. A leading ? or & is removed before adding the string the URL. If the URL already contains parameters (if the URL contains a ?) the paramters string is added with a leading ampersand (&). If not the parameters are appended using a ? character.

Helper functions for generating the name of the colorset class. colorset_ Helper functions for retrieving the name of the content type of the current content item from the result tree XML. Helper template for processing arrows/links for sorting items. Helper template for processing additional attributes in the data tree XML. They copied literally from the XML the HTML.

The layout node to process. Default the the current node.

Additional attributes to copy from the layout tree. data attributes (e.g.data-toggle) are copied automatically. Also id and class are already processed by this template.

A convenient helper template which calls three other helper templates:

The name of the template file to process. This template is the entry point for the template parser.

Helper template for setting the id and class attributes on a HTML element.

ID to set.

(Additional) Classes to set.

Current node from the layout files.