We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33983 ☆ A M B ☆
    • 181 Posts
    I am trying to do this with the If snippet:

    [[!If?
      &subject=`[[+modxSiteTemplate]]`
      &operand=`mobile`
      &then=`[[!jgSlideShow? &skin=`bethel_` &headTpl=`bethel_mobile_headTpl`]]`
      &else=`[[!jgSlideShow? &skin=`bethel_`]]`
    ]]
    


    But the ticks are not being parsed correctly and I have 2 calls to the snippet rather then one or the other. Anybody see what I am doing wrong?

    Thanks,
      • 3109 ☆ A M B ☆
      • 894 Posts
      Add &operator`EQ` to you call and that should take care of it.

      Right now your trying to compare the operand to an operator that doesn’t exist.

      Hope that helps.
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX