So on the CTGY Page all I want to do is use a custom category field called ShortName if it is populated in place of the &mvte:subcategory:name;
What am I doing wrong?
I do not get any compile errors but am not getting the expected results.
For example if the Child Category) Name is "Computer Science" and the Custom Field ShortName is populated with "CS" I want to display "CS"
<mvt:item name="customfields" param="Read_Category_Code( l.settings:category:code, 'shortCatName', g.sName )" />
<mvt:if expr="mvt:global:sName; NE ''">
<strong class="x-product-list__name u-text-uppercase">&mvt:global:sName;</strong>
<mvt:else>
<strong class="x-product-list__name u-text-uppercase">&mvte:subcategory:name;</strong>
</mvt:if>
I could not find a clear example dealing with this. Simple problem and probably a simple solution and I have some syntax wrong.
Any help would really be appreciated.
What am I doing wrong?
I do not get any compile errors but am not getting the expected results.
For example if the Child Category) Name is "Computer Science" and the Custom Field ShortName is populated with "CS" I want to display "CS"
<mvt:item name="customfields" param="Read_Category_Code( l.settings:category:code, 'shortCatName', g.sName )" />
<mvt:if expr="mvt:global:sName; NE ''">
<strong class="x-product-list__name u-text-uppercase">&mvt:global:sName;</strong>
<mvt:else>
<strong class="x-product-list__name u-text-uppercase">&mvte:subcategory:name;</strong>
</mvt:if>
I could not find a clear example dealing with this. Simple problem and probably a simple solution and I have some syntax wrong.
Any help would really be appreciated.
Comment