We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29076
    • 615 Posts
    I tried this:
    [!Ditto? &tpl=`other-list` &showInMenuOnly=`1` &parents=`[!GetParent? &field=`ID` &level=`1`!]` &depth=`1` &hideFolders=`1` &display=`20` !]
    but it did’nt work.

    What I try to do is to show a full article (in this case on the left side), and then, on the same side, show a list with the rest of the articles in the same parent-category.

    I’ve tried other versions of getParent, UltimateParent and so on, but with no luck.

    Can someone please help? smiley
      I think, thererfor I am! But what I am, and why...?
      • 25663 MODX Staff
      • 12,272 Posts
      You can’t have nested uncached calls. Try making the outer one cached, or vice-versa.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 17329
        • 53 Posts
        I noticed that simply installing PHx Plugin allows me to have calls like that

        [[Wayfinder? &startId=`[[IdLanguageMapper? &key=`beodom` &language=`[*language*]`]]` ...]]

        while without PHx plugin I could not get it work. And regardless of alterning cached/uncached calls.

        Note that Wayfinder in my example could be ditto or whatever else.

        lionel
          • 17329
          • 53 Posts
          Note that in your particular case, wouldn’t it be enough just to use
          [*parent*]
          to get the parent id of the page on which you make the call :

          [!Ditto? &tpl=`other-list` &showInMenuOnly=`1` &parents=`[*parent*]` ...!]

          lionel
            • 29076
            • 615 Posts
            So simple and easy. This was the sollution: [!Ditto? &tpl=`other-list` &showInMenuOnly=`1` &parents=`[*parent*]` ...!]


            Thanks laugh
              I think, thererfor I am! But what I am, and why...?