steveosoule
10/11/2016 - 3:54 PM

Miva - Load Custom Field in URI Template

Miva - Load Custom Field in URI Template

<mvt:do name="l.module_loaded" file="g.Module_Library_DB" value="Module_Load_Code('customfields', l.module )" />
<mvt:do name="l.result" file="g.Module_Root $ l.module:module" value="Read_Product_Code(l.module, l.param, l.settings:product:code,'CustomField_Code', g.CustomField_Code )" />
/product/<mvt:if expr="NOT ISNULL l.settings:product:slugified_page_title"><mvt:eval expr="tolower( l.settings:product:slugified_page_title $ '-' $ g.CustomField_Code)" /><mvt:else><mvt:eval expr="tolower( l.settings:product:slugified_name $ '-' $ g.CustomField_Code )" /></mvt:if>.html