We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32017
    • 151 Posts
    I have some code in my template..

    eg: <h1>[[*introtext]]</h1>

    I want to hide that from every page within a specified resource ID

    Whats the easiest way to do this using the powers of revolution?
      London web design - MODx specialists
      • 32017
      • 151 Posts
      I have managed to do this

      [[*parent:if=`[[*parent]]`:eq=`10`:then=``:else=`[[$sub-introtext]]`]]

      Which is working but i think i could maybe do this easier?

      Plus how do i add multiple parent id’s ?

      10||12||13 doesnt work
        London web design - MODx specialists
        • 32017
        • 151 Posts
        OK i feel like im talking to myself here but ive managed to do it like this

        [[*parent:if=`[[*parent]]`:eq=`10`:or:is=`11`:or:is=`12`:then=``:else=`[[$sub-introtext]]`]]

        if there is a better solution please can someone let me know
          London web design - MODx specialists