Forums / Cotonti / Support / Page extra field value in page.tpl

Kort
#36396 2012-12-03 05:22

Assuming you have an extrafield "producttype" with a value "jckt". To localize it you go for:

$L['producttype_jckt'] = 'Jacket';

in the theme lang file. So in the page.tpl you can use the tag:

{PAGE_PRODUCTTYPE}

to get the localized "Jacket" string or the variable

{PHP.pag.page_producttype}

to get the original "jckt" value.

SED.by - создание сайтов, разработка плагинов и тем для Котонти