We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36582
    • 463 Posts
    How do I filter my Ditto output by restricting it to showing results by the contents of a folder?

    So I have a folder with an id of 79 and my startid is 79 - I only want to show the documents in the result that have a parent of 79.

    Does that make sense?!
      Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
      • 6726
      • 7,075 Posts
      Not really all that clear... what exactly do you need to filter out ?

      Ditto only displays the immediate children of your parent documents by default (e.g &depth default value is 1), I fail to see what your problem is, or maybe you need to hide document with children ? if so, use &hideFolders=`1`


        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 36582
        • 463 Posts
        Sorry that wasn’t very clear was it. Thanks for replying despite that!

        I didn’t realise but Ditto already seems to do what I’m asking.

        I have a document (78) which holds my call (startid 79) to display pages in parent folder (79). I didn’t realise that Ditto would then stop at only displaying the documents within that parent - I thought it would display every document after 79 whether it was in that folder or not!

        Sorry for the confusion.
          Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
          • 6726
          • 7,075 Posts
          Don’t be sorry, it could make sense, the default value being &depth=`1` is not obvious though it’s smart on Mark’s part to not make it parse all document levels smiley
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id