Skip to content

Template Language Functions#


As of 9.0001 there are 5 functions available to any page the Theme Component item is assigned. These functions can be used to pre-load the data for a image, banner, navigation set, content section or product listing. The main use of this would be to check to see if the Theme Component element was active, however it can be used for other conditionals as well.

Function List#

<mvt:item name="readytheme" param="Load_Image(code, output )" />
<mvt:item name="readytheme" param="Load_Banner(code, output )" />
<mvt:item name="readytheme" param="Load_NavigationSet(code, output )" />
<mvt:item name="readytheme" param="Load_ContentSection(code, output )" />
<mvt:item name="readytheme" param="Load_ProductListing(code, output )" />

Parameter Definition#

Parameter Description
Code The theme component code you want to reference
Output The variable where you want the data will be loaded

Note

If output is omitted or left blank the data is automatically loaded into l.settings:readytheme:loaded

Example#

<mvt:item name="readytheme" param="Load_Image('promo_1',g.promo)" />

Example Entities#

&mvt:global:promo:active;
&mvt:global:promo:code;
&mvt:global:promo:css_class;
&mvt:global:promo:css_id;
&mvt:global:promo:id;
&mvt:global:promo:image_alt;
&mvt:global:promo:image_hght;
&mvt:global:promo:image_id;
&mvt:global:promo:image_size;
&mvt:global:promo:image_wdth;
&mvt:global:promo:link_dest;
&mvt:global:promo:link_targ;
&mvt:global:promo:link_type;
&mvt:global:promo:name;