Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Donald Swofford 13 posts 107 karma points
    Aug 04, 2014 @ 23:18
    Donald Swofford
    0

    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.

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Aug 04, 2014 @ 23:26
    Chriztian Steinmeier
    0

    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

  • Donald Swofford 13 posts 107 karma points
    Aug 05, 2014 @ 00:25
    Donald Swofford
    0

    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.

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Aug 05, 2014 @ 09:25
    Chriztian Steinmeier
    0

    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

  • Donald Swofford 13 posts 107 karma points
    Aug 05, 2014 @ 14:52
    Donald Swofford
    0

    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?

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Aug 05, 2014 @ 15:02
    Chriztian Steinmeier
    100

    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:

    List Sub Pages By Level

    /Chriztian

  • Donald Swofford 13 posts 107 karma points
    Aug 05, 2014 @ 23:18
    Donald Swofford
    0

    Thanks! that seems to have worked.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies