Announcement

Collapse
No announcement yet.

Help with page:code conditional

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

    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

    #2
    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.
    M.A.D.* since 1997

    http://www.scotsscripts.com

    *miva application developers

    Comment


      #3
      and purely stylistic, but i usually write this as

      <mvt:if expr="g.screen$'|' IN 'PROD|BASK|OPAY|'OSEL|OCST'|">
      ">
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment

      Working...
      X