We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20751
    • 122 Posts
    Is it possible to set the &parents to be dynamic? I want it to be the current container/folder that ditto is called on. So if ditto is called at the container with id 8, i want the &parents to be set to 8 so it can display the child documents.

    Hopet that makes sense!

    Thanks

    ADMIN: PLEASE DELETE THIS TOPIC:

    Spent ages trying to find an answer, then as soon as I post this topic I find the answer to my question a dozen topics down! Please forgive me!
      • 6726
      • 7,075 Posts
      Well, for those who wonder how it’s done let’s share it :

      [tt]&parents=`[*id*]`[/tt]

      Since you’re talking dynamic parameter, you can also do some nice stuff with a nested UltimateParent call smiley
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 20751
        • 122 Posts
        Yes I’m sorry, I should have said!

        And the way I did it was just to leave out the &parents parameter and ditto will default to the parent from which it is being called which is exactly what I wanted.

        This thread reveals all:

        http://modxcms.com/forums/index.php/topic,17589.0.html

        Thanks!

          • 6726
          • 7,075 Posts
          Good point, forgot that it was default rolleyes
          Ditto is smart !
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id