We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23571
    • 223 Posts
    I am needing to put together a nested PHx statement(below) and am not sure if you can use the documentObject directly in PHx. If you can, how would you form the statement below that includes the ($modx->documentObject[’isfolder’];) portion?

    [+phx:if=`[*id*]`:is=`2`:or:is=`3`:then=`{{Chunk}}`:else=`[+phx:if=`$modx->documentObject['isfolder'];`:is=`1`:then=`{{Chunk}}`:else=`{{OtherChunk}}`+]`+]

      • 4172
      • 5,888 Posts
      you can try:

      [*id:is=`2`:or:is=`3`:then=`{{Chunk}}`:else=`[*isfolder:is=`1`:then=`{{Chunk}}`:else=`{{OtherChunk}}`*]`*]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 23571
        • 223 Posts
        Thanks, I will let you know if that works.