In a Velocity macro I’m grabbing the list of all pages with a specific tag. I’d like to render the results as a tree view. I don’t see any way to pass a filter or query into the tree macro. Am I missing something simple, or do I have to create a way to sort my results and render them?
Hi @drewkime.
You can check https://extensions.xwiki.org/xwiki/bin/view/Extension/Tree%20Macro#HDynamicTree which links to:
- https://extensions.xwiki.org/xwiki/bin/view/Extension/Tree%20Widget#HDynamicData
- https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/CreatingATreeView/#HDynamicTeamHierarchyTreev128lazyloading29
The last link has examples of creating custom dynamic trees.
Thanks
Thanks for the pointers. That lead me to the Document Tree Macro, which does almost what I want. That supports exclusions, by ID. What I’m looking for is to specify inclusions, by tag. Is there a way to use a filter query to specify what documents to include?