Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi,

I see there is a depth-parameter for the folder-tag to see how deep needs to be looped.
However, Is there a way to start at a certain point instead?

I have nested dynamic folders and want to exclude the first level, and loop through everything beneath instead. exclude-parameter, excludes the complete folder and its children, whereas I'm seeking to start at a given point.

info: folder
Is there a way to start at a certain point instead?
The 'root' and 'childof' parameters can be used to specify a start-point.

For your case, I think setting 'childof' to the first-level folder should be the solution as it 'excludes' the specified folder itself and shows only the children.

Does this help?
Thanks KK,

works perfect. I was mistaken the childof-parameter as being for "listfolders" only.
as a sidenote: root and childof can't have the same input off course...

Code: Select all
<cms:folders childof='requiredLevel' >
</cms:folders>
Great :)
'root' and 'childof' are very similar - the difference being that 'root' lists the specified folder plus its children while 'childof' lists only the folder's children.

You are right, it doesn't make sense to use both at the same time.
If one, however, happens to do so 'root' will be given precedence i.e. 'childof' will be ignored.
4 posts Page 1 of 1
cron