Announcement

Collapse
No announcement yet.

Help with page:code conditional

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bruce - PhosphorMedia
    replied
    and purely stylistic, but i usually write this as

    <mvt:if expr="g.screen$'|' IN 'PROD|BASK|OPAY|'OSEL|OCST'|">
    ">

    Leave a comment:


  • Scot - ScotsScripts.com
    replied
    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:


  • mstella1
    started a topic Help with page:code conditional

    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,
    Mike
Working...
X