ok, I've read through the documentation and I am still having the same issue.
I am using the Hierarchical Viewer in Kentico 11.
I have set the path to ./%
and I have set the maximum nesting level to 2
.
My site Structure for pages looks like this, they all use the same template but are unique page types:
At any time, anywhere within the tree above, a user could add a Page Type called "File Folder" with a bunch of Page Types called "Files" within that.
So, it could look like this (as an example):
-
Main Page Type
-
File Folder (Page Type)
- File (Page Type)
- File (Page Type)
-
Sub1 Page Type
The issue that I am having is with my Sub1 Page Type, if there isn't a File Folder directly under it, I feel like it shouldn't display the "File Folder" page type, but it does. I have two item transformations. One at Level 0, specifically and only for the File Folder page type and one at Level 1, specifically and only for the File Page Type. I have read that any transformation with a Level 0 will function for all levels. I guess that since I set the maximum nesting level to 2, the hierarchical viewer will look to the next level to find the File Folder page type, but I don't want it to do that.
Any thoughts?