We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12656
    • 13 Posts
    Is there a way to format all the entries of a given depth?

    using &parentRowTpl works nice for formating folders containing other documents. thats what I want. but I got also some single documents that are not folders, but that ar on the same level as my folders. And they need to be formated to. Thats what it should look like:


    • document
    • folder
      [list]
      [li]subdocument
    • subdocument
    • subdocument
    [/li]
    [li]folder

    • subdocument
    • subdocument
    • subdocument
    [/li]
    [/list]

    so the folder and the document (everything on layer 1) should have a different formating. all the subdocuments are normal. How can I do this?
      • 10666
      • 68 Posts
      well,I have a menu that looks like yours ,and do the following:
      For level1 items I define CSS for li items .
      li { }
      For level2 items I define CSS for ul li items
      ul li { } .
      Works for me smiley .
        • 12656
        • 13 Posts
        ok you are right, doing it with css definitions is the easiest way. But what if I want to put different html code in the first level list items? Then there would be the need for a separate template chunk? But how do I make a wayfinder call for it?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          There are a number of templates you can specify, such as outerTpl and outerRowTpl, innerTpl and innerRowTpl, as well as several useful classes such as levelClass. Take a look at the Wiki:

          http://wiki.modxcms.com/index.php/Wayfinder
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 12656
            • 13 Posts
            Quote from: sottwell at Feb 10, 2007, 02:46 AM
            levelClass.

            that’s what I was looking for. Thanks.