Hi Gaby,
On 7 Aug 2015 at 10:40:51, Gabriela Smeria
(gabriela.smeria@xwiki.com(mailto:gabriela.smeria@xwiki.com)) wrote:
Hello Marius,
On Fri, Jun 12, 2015 at 1:30 PM, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
Hi guys,
The wiki home page displays, by default, the list of spaces that exist
in the wiki (hidden or not, depending on the user profile settings).
This is done using the
http://extensions.xwiki.org/xwiki/bin/view/Extension/Spaces+Macro . As
we have started to work on adding support for nested spaces/documents,
we need to review the purpose of this macro. Is it still relevant to
display a list of spaces when there is a tree hierarchy? It only makes
sense if you want to display just the list of direct children of a
given node.
I see the following options:
(1) Display the list of top level nodes (space/document) on the wiki
home page. No tree. The rationale is that loading the tree (even if
done lazy) is more expensive that displaying a static list of links.
For this we can extend the Spaces Macro with a parameter to specify
the parent node. When this parameter is not specified the macro will
list the top level nodes. (In the context of nested documents we could
introduce a new macro Document List instead)
-0 for (1), because even though it takes less time to display a list of top
level nodes, I don't think it's achieving the concept of Nested Spaces
(Documents), since what will be shown it is what is shown now, without the
Nested Spaces concept implemented.
(2) Display the tree hierarchy on the wiki home
page, using
http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro
.Of course, the tree will be lazy loaded, and only the top level nodes
are displayed initially. If we do this then we can probably deprecate
the Spaces Macro and advice the users to use the Document Tree Macro
instead.
+1 for (2), because this is what we want in the end, to see (or at least to
have the possibility to visualize) a hierarchy of Nested Spaces (Documents)
See also my proposal (3) in my previous answer on this thread.
WDYT about it?
Thanks
-Vincent