We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22897 ☆ A M B ☆
    • 209 Posts
    Hi,

    I have a tree of links in MODx, stored like:
    Link Directory
      Category 1
        Link1
        Link2
      Category 2
        Link 1
        Link 2
    ...


    I can get Ditto to render this as an unordered list, however is there any way to get the pages with the ’containers’ attribute checked to be rendered differently (ie use a different template)?

    Another case where I want to do this is with a resource browser. Instead of showing all on one page (as above) I want to distinguish the sub-categories from the documents. I can do this with two separate calls to Ditto, but is there a more optimal way?
      MAPLEDESIGN MODX development and MODX web design and custom development. Proud to serve UK and International clients!
      • 7231
      • 4,205 Posts
      Wayfinder can do this in a snap. You can set templates for all the levels individually if needed.

      Check out some examples and parameters at:
      http://www.muddydogpaws.com/development/wayfinder/features.html
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 22897 ☆ A M B ☆
        • 209 Posts
        Thanks, for some reason I had it in my head Ditto was for content and Wayfinder for menus, and that shouldn’t be crossed over smiley
          MAPLEDESIGN MODX development and MODX web design and custom development. Proud to serve UK and International clients!
          • 25663 MODX Staff
          • 12,272 Posts
          If it works, use it. MODx doesn’t really force any restrictions, and there’s typically 3-4 ways to get to the same end result.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me