We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46073
    • 65 Posts
    Hi, I have a some resources that I need displayed on the front end in a particular way but I can't (am not allowed to) rearrange the resource tree structure. This is an example tree:

    Category 1
    - Sub Category 1
    -- Set 1
    --- Product 1
    --- Product 2
    --- Product 3
    -- Set 2
    --- Product 4
    --- Product 5
    --- Product 6
    -Sub Category 2
    -- Set 3
    --- Product 7
    --- Product 8
    --- Product 9

    I need to display this on the front-end as:

    Category 1
    - Sub Category 1
    -- Product 1
    -- Product 2
    -- Product 3
    -- Product 4
    -- Product 5
    -- Product 6

    - Sub Category 2
    -- Product 7
    -- Product 8
    -- Product 9

    Basically ignoring the Sets parent, again I can't simply remove them in the admin. Thoughts?
      • 2396
      • 101 Posts
      Can you select the 'Hide From Menus' checkbox for the 'Set 1', 'Set 2' and 'Set 3' resources in those pages Documents tabs?
      • You could also try adding rel="category" to the link attributes field of the resources you don't want to show, then use the &categoryFoldersTpl property with just [[+wf.wrapper]] in the chunk. That should just output its child rows.
          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