and purely stylistic, but i usually write this as
<mvt:if expr="g.screen$'|' IN 'PROD|BASK|OPAY|'OSEL|OCST'|">
">
Announcement
Collapse
No announcement yet.
Help with page:code conditional
Collapse
X
-
Looks OK to me.
You could try g.screen instead of l.settings:page:code or
'prod' EQ tolower(l.settings:page:code)
just to make sure.
Also make sure that there are no alternate product pages. Maybe a particular product is going to PROD2 or something along those lines. Check the product in the admin and see if alternate page code is filled in.
Leave a comment:
-
Help with page:code conditional
Hi Everyone,
Is there any reason this conditional wouldn't be working on the PROD pages? It works on the other pages just not PROD.
<mvt:if expr="
'PROD' EQ l.settings:page:code OR
'BASK' EQ l.settings:page:code OR
'OPAY' EQ l.settings:page:code OR
'OSEL' EQ l.settings:page:code OR
'OCST' EQ l.settings:page:code
">
Do this
<mvt:else>
Otherwise do this
</mvt:if>
Thanks,
MikeTags: None
- 1 like
Leave a comment: