I had a look of the multiple extensions that seem to do that.
And while some are close not do handle a tree view that can scale and works
from one specific parent node.
The XWiki tree view is AJAX but only works for a full space or wiki.
Initially it had the tree from one parent in the spec but I tried it and I
think it never really worked. Generally I don't like the XWiki tree view
because it's very complex to debug and work with. Everytime I tried to have
a look I had a really hard time to understand how it works.
The hierarchy macro is not AJAX and also takes the whole set (including the
orphans).
Now in view mode it might not be that complicated to make the hierarchy
macro AJAX as there are already REST urls to read the childrens of a
specific page. Another aspect that is also needed is some sort of way to
"remember" what has been opened OR to open the tree on the page that is
currently active.
Another general issue is inserting a tree in a limited width panel,
particularly when long titles are used. This causes CSS issues that are
hard to handle. It might be needed to allow the width of the panel to
auto-expand when the tree needs it.
The hierarchy macro is interesting because it has a way to update your
tree. It could also be interesting to add a feature to add a page in the
tree.
Ludovic
2014-02-04 9:57 GMT+01:00 vincent(a)massol.net <vincent(a)massol.net>et>:
Hi devs,
I've noticed a recurring trend from our users: a lot of them seem to wish
to display Tree views/navigation view of their wiki pages either in page
content or in a panel.
When they go to e.x.o, there's a lot of extensions listed (showing that
other users had this need previously) but none really work well:
http://extensions.xwiki.org/xwiki/bin/view/Extension/WebHome#|t=extensions&…
We do have a tree view in AllDocs but it's not perfect and it's not easily
reusable.
Thus I believe we need to find an official solution to this tree view
issue.
The easiest solution could be to create a wiki macro based on our current
tree view so that it can be reused in wiki pages and more importantly in a
panel. Having a "spaces" parameter to restrict the list of spaces to
display would be nice too.
WDYT?
Any other idea?
Thanks
-Vincent
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Ludovic Dubost
Founder and CEO
Blog:
http://blog.ludovic.org/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost