Site structure
Version 6.x > Site structure > Current documents, but not children View modes: 
User avatar
Member
Member
r-puust - 4/5/2012 3:41:20 PM
   
Current documents, but not children
I've got a simple question, which I used to know and seem to have forgot. When using a data control (e.g. repeater), how do I get all the documents below it, but not children. For example:

-Item 1
--Item 2a
--Item 3a
---Item 4b
---Item 5b
----Item 6c
--Item 7a
--Item 8a

When I am on Item 1, I want to return 2a,3a,7a,8a, but not 4b,5b or 6c. The problem is, if i use ./%, then I get all children.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 4/6/2012 3:44:02 AM
   
RE:Current documents, but not children
Hi,

you could set Where condition property to:

NodeLevel<=2

Another option is to set Maximum nesting level property to 2.

Best regards,
Ivana Tomanickova