What am I doing wrong here? If there is an Alternate Category Name is displays but if there isn't the Category Name is supposed to display, but it doesn't.
Code:
<mvt:if expr="l.settings:customfield_names:customfields:altcatname"> <section class="o-layout u-hidden u-flex--l"> <div class="o-layout__item"> <div class="x-hero" title="&mvte:category:name;"> <mvt:item name="customfields" param="Read_Category_Code( g.Category_Code, 'altcatname' )" /> <h1 class="c-heading-delta-cooper u-color-red t-page-title">&mvte:customfields;</h1> </div> </div> </section> <mvt:else> <section class="o-layout u-hidden u-flex--l"> <div class="o-layout__item"> <div class="x-hero" title="&mvte:category:name;"> <h1 class="c-heading-delta-cooper t-page-title">&mvte:category:name;</h1> </div> </div> </section> </mvt:if>
Comment