Hi All,
I’m trying to use the &hideFolders parameter to hide 3 levels of folders and only show the documents at each level. Here’s my ditto call:
[!Ditto? &startID=`144` &tpl=`menu-item` &depth=`4` &sortBy=`ASC` &randomize=`1` &total=`10` &hideFolders=`1` !]
It’s working great for hiding the first level of folders, but once it gets to the sub-folders it just displays them. Anyone know how to hide multiple levels of folders? Let me know!
&hideFolders=`1` hides all those documents which are folders - meaning that they have child documents. And their children also will be hidden.
But all documents without children will be displayed - on every level of the document tree down to the limit of &depth.
You could try to use the &parents Parameter. It replaces the deprecated parameter &startId and allows not only one but a (comma separated) list of parent documents whose descendants you want to display. So if f.i. the folders you want to be hidden had the IDs 4, 7 and 15, you could use &parents=`4,7,15` in the ditto call (I’m guessing, didn’t try it by myself). Of course that would not be as dynamic as you may like to have it...