public Function tag - content

Contents [-]
The function tags are developed by the WordFrame team. They can be used everywhere in the public site in HTML, javascripts, etc. and will be substituted with the real values when the HTML is rendered. Function tags can be inserted as:
{{ function_tag: parameter }}   or   {{ function_tag: parameter $|$ option_1 $|$ option_2 }}

Usage details for functional tag content

tag parameter (description) options (description) example
content page-title
will be substituted with the current page META title (ex. WordFrame Integra - Customer support )
none {{ content: page-title }}
content page-name
will be substituted with the current page name as seen in the administration shell (ex. customer account page )
none {{ content: page-name }}
content master-page-name
will be substituted with the current master page name as seen in the administration shell (ex. customer account master )
none {{ content: master-page-name }}
content node-title
will be substituted with the menu title of the current url node. (ex. products)
none {{ content: node-title }}
content node-name
will be substituted with the current url node name as seen in the administration shell (ex. customers )
none {{ content: node-name }}
content data-variable
will be substituted with the value(text) of the data variable that has a label matching the option_1 string. (ex. username_x)
option_1 ( string )
(required) the label of the target data variable.
option_2 ( string )
(not required) if no variable label match option_1, this value will be returned by the system. If there is no variable label match and no default value set, the system will render the tag.
{{ content: data-variable $|$ article}}
{{ content: data-variable $|$ article $|$ 1}}
content datetime
will be substituted with the current date according to the server timezone and formatted as set in the option.
option_1 ( date-time format string )
(required) the format should be according the asp.net date and time format standard (ex. dd-MM-YYYY hh:mm). If no format is provided, the current system one will be applied.
option_2 ( custom offset string )
(not required) this is a custom date-like format implementation for setting time span. You can set an integer number of years (y), months (M), days (d), hours (h), minutes (m) or seconds (s) for the date to be offset (eg. "1y 1M" means to calculate the date by adding to the current date-time 1 year and 1 month). By default the offset is always postive (in the future), but if you add a "minus" sign it will be considered in the past (eg. "-12y -1d" means 12 years and 1 day back in the past)
{{ content: datetime $|$ dd-MM-yyyy HH:mm $|$ -1m}}
content datetime-utc
will be substituted with the current date according to the UTC timezone and formatted as set in the option.
option_1 ( date-time format string )
(required) the format should be according the asp.net date and time format standard (ex. dd-MM-YYYY hh:mm). If no format is provided, the current system one will be applied.
option_2 ( custom offset string )
(not required) this is a custom date-like format implementation for setting time span. You can set an integer number of years (y), months (M), days (d), hours (h) or minutes (m) or seconds (s) for the date to be offset (eg. "1y 1M" means to calculate the date by adding to the current date-time 1 year and 1 month). By default the offset is always postive (in the future), but if you add a "minus" sign it will be considered in the past (eg. "-12y -1d" means 12 years and 1 day back in the past)
{{ content: datetime-utc $|$ dd-MM-yyyy HH:mm $|$ 1y -1m -1d 12h}}
Last edited by nadia on 26 Oct 2010 | Rev. 1 | This page is public | Views: 1
Comments: 0 | Filed under: root | Tags: