We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37909
    • 153 Posts
    I illustrate to explain. It's more easy.
    This is my modx docs:
    - Master Folder (6)
        | Docs number 1 (9)
        + Folder number 1 (8)
              | [i]Many docs here[/i]
        + Folder number 2 (15)
              | [i]Many docs here[/i]
        + Folder number 3 (43)
              | [i]Many docs here[/i]
        + Folder number 4 (46)
              | [i]Many docs here[/i]

    Now I displays my docs like this:
    [!Ditto? &orderBy=`NomLatin ASC` &tpl=`plantes_ditto_toutes` &parents=`8,15,43,46`!]

    But if I create a new folder in the Master Folder I must change the Ditto declaration like this:
    [!Ditto? &orderBy=`NomLatin ASC` &tpl=`plantes_ditto_toutes` &parents=`8,15,43,46,[i]idOfNewFolder[/i]`!]

    If I use this declaration:
    [!Ditto? &orderBy=`NomLatin ASC` &tpl=`plantes_ditto_toutes` &parents=`6` &depth=`2` !]

    I display 8,15,43 and 46 too. But I don't to see this.
    What should I do?
      • 16278
      • 928 Posts
      To hide the folders that have children of their own, set &hideFolders=`1` in the Ditto call.
      :) KP
        • 37909
        • 153 Posts
        Thanks. I forgot 1 thing : I don't want to display the doc 9 too.
          • 16278
          • 928 Posts
          You could use a filter for that: &filter=`id,9,2`
          ;) KP
            • 37909
            • 153 Posts
            thank you. you are my savior wink