Skip to content

Feature Request: Add support for tree hierarchy #40

@hwmaier

Description

@hwmaier

getResources processing yields a flat view of a resource tree.

There are application where a tree view would be beneficial and a tree view cannot be achieved by chaining getResources calls as parameters (eg filter parameters) cannot be passed down the chain. Other snippets which create a tree, like WayFinder on the other hand do not support filtering.

There is currently a work around using a snippet called getResourcesTree (refer to http://modxcms.com/forums/index.php/topic,43832.msg333619.html#msg333619) but it would be nice to have such a functionality integrated into getResources.

I am happy to provide a patch with that feature integrated using sortby='tree' as a way to configure this feature. I also would then add an additional template tplContainer so containers can be renderd differently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions