How can I list all the current documents of the same level in a current folder?
For example I have a list of 10 parent folders with child folders In them and those child folders have child folders. Each has its own document and template I would like to list all of the child folders and ideally apply a "selected" CSS class to the selected child folder with a link to the other child folders but not list and grandchild or parent folders.
Please let me know if this isn't clear. Thank You.
I'm not sure I completetly understand what you want... could you maybe show a screenshot or similar of the structure, and then a mockup of how you'd like it to look - either in actual output code or just structurally?
Actually, that looks like you should be able to use the built-in "List Sub Pages By Level" macro for that (from level 2 or 3, depending on where your "1", "2" and "3" nodes are located). Or maybe you setup is a little more complicated?
Thanks for your help. I dont see an option to list subpages by level. I see list children or ancestors . I am using version 7 if that makes a difference?
Hi Donald - when you create a new XSLT (or Razor) file, you can choose a starter template - there are multiple to choose from but one of them is this one:
How can I list a level of documents?
How can I list all the current documents of the same level in a current folder?
For example I have a list of 10 parent folders with child folders In them and those child folders have child folders. Each has its own document and template I would like to list all of the child folders and ideally apply a "selected" CSS class to the selected child folder with a link to the other child folders but not list and grandchild or parent folders.
Please let me know if this isn't clear. Thank You.
Hi Donald,
I'm not sure I completetly understand what you want... could you maybe show a screenshot or similar of the structure, and then a mockup of how you'd like it to look - either in actual output code or just structurally?
/Chriztian
Sure.
So lets say I have the folder structure as follows.
I would want it to display in a dropdown CSS menu as follows:
Notice its just printing a list of the middle level folders not the parents or child documents.
Hi Donald,
Actually, that looks like you should be able to use the built-in "List Sub Pages By Level" macro for that (from level 2 or 3, depending on where your "1", "2" and "3" nodes are located). Or maybe you setup is a little more complicated?
/Chriztian
Chriztian,
Thanks for your help. I dont see an option to list subpages by level. I see list children or ancestors . I am using version 7 if that makes a difference?
Hi Donald - when you create a new XSLT (or Razor) file, you can choose a starter template - there are multiple to choose from but one of them is this one:
/Chriztian
Thanks! that seems to have worked.
is working on a reply...