We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36967
    • 4 Posts
    Hi There,

    I am trying to execute an IF statement with no joy.

    [[+phx:if=`[[getResourceField? &id=`[[*parent]]` &field=`pagetitle`]]`:is=`Shop`:then=`[[*pagetitle]]`:else=`[[getResourceField? &id=`[[*parent]]` &field=`pagetitle`]]`]]


    Basically I am trying to achieve if the getresourcefield = Shop then use the pagetitle else just use the original call.

    If anyone can help I would greatly appreciate the help.

      • 36967
      • 4 Posts
      Its okay.

      The above code does work lol.

      Was previewing the wrong page. What a fool.