Miva - Load Custom Field in URI Template
<mvt:do file="g.Module_Library_DB" name="l.loaded_module" value="Module_Load_Code_Cached( 'customfields', l.customfields_module )" />
<mvt:if expr="l.loaded_module">
<mvt:do file="g.Module_Root $ l.customfields_module:module" name="l.settings:product:brand" value="Module_Product_Field_Value( l.customfields_module, l.settings:product:id, 'brand' )" />
</mvt:if>
<mvt:if expr="l.settings:product:brand">
/product/&mvts:product:brand;/&mvts:product:name;.html
<mvt:else>
/product/&mvts:product:name;.html
</mvt:if>
<mvt:do file="g.Module_Library_DB" name="l.loaded_module" value="Module_Load_Code_Cached( 'customfields', l.customfields_module )" /><mvt:if expr="l.loaded_module"><mvt:do file="g.Module_Root $ l.customfields_module:module" name="l.settings:product:brand" value="Module_Product_Field_Value( l.customfields_module, l.settings:product:id, 'brand' )" /></mvt:if><mvt:if expr="l.settings:product:brand">/product/&mvts:product:brand;/&mvts:product:name;.html<mvt:else>/product/&mvts:product:name;.html</mvt:if>