We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28376
    • 222 Posts
    Basically this if statement will only show the chunk if its not on the homepage but it isn't working

    [[!If? &subject=`[[*id]]` &operator=`!=` &operand=`1` &then=`[[$feature_right]]`]]
    


    Any ideas as to why.
      • 22427
      • 793 Posts
      Sometimes it helps to add an "else" part:
      [[!If? &subject=`[[*id]]` &operator=`!=` &operand=`1` &then=`[[$feature_right]]` &else=``]]


      Or try using an output modifier:
      [[*id:isnot=`1`:then=`[[$feature_right]]`:else=``]]
        • 42562
        • 1,145 Posts
        This should work
        [[!If? &subject=`[[*id]]` &operator=`EQ` &operand=`1` &then=`[[$feature_right]]`]]
        [ed. note: donshakespeare last edited this post 13 years, 7 months ago.]
          TinymceWrapper: Complete back/frontend content solution.
          Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
          5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Or use a separate template for the home page, or (my preference) use a TV with the default being the chunk tags, and empty it for the home page resource. That makes four ways to accomplish the same thing wink
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 28376
            • 222 Posts
            I agree with sottwell's solution. This site is very old and needs a overhaul. But in the mean time this solution worked

            [[*id:isnot=`1`:then=`[[$feature_right]]`:else=``]]


            Thanks to ottogal