Yes, I know the token <mvt:item name="prod_ctgy_hdft" param="ctgy_header" /> is used to display the category header content. If nothing is in the field nothing displays, but I want to add some styling which includes a background color. What I want is to be able to wrap the div tag with a conditional to only display if there is something in the field - just like how the category title image does it.
I can't seem to figure out variable that will work. This didn't work
<mvt:if expr="NOT ISNULL l.settings:prod_ctgy_hdft:ctgy_header">
I looked through Var List and even used the PM Inspector - is it possible this one doesn't have the ability to do this?
Leslie
Code:
<mvt:if expr="NOT ISNULL l.settings:category_title:image"> <img src="&mvte:category_title:image;" alt="&mvte:category:name;" class="img-responsive" /> <mvt:else> </mvt:if>
<mvt:if expr="NOT ISNULL l.settings:prod_ctgy_hdft:ctgy_header">
I looked through Var List and even used the PM Inspector - is it possible this one doesn't have the ability to do this?
Leslie
Comment