On Mon, Oct 5, 2015 at 11:41 AM, prettymuchcoverseverything
<eric.dietzsch(a)init.de> wrote:
Hey Clemens,
thank you for your help. The first workaround worked liked a charm for me..
Now the thing is, that I want to set up a second navigation. I now set up a
{{tree}} element and everything seems to work fine, but the only problem I
have with it, is that the actual site is not displayed in the tree element.
So for instance this is my tree menu:
- AM 1
--point 1.1 (hidden in normal)
- AM 2
--point 2.1 (hidden in normal)
- AM 3
-- point 3.1 (hidden in normal)
I suppose this is a static tree
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tree+Macro#HStaticTree
. You can use the "openTo" parameter like this:
{{tree openTo="j1_3"}}
* Grandparent
** Parent
*** Child
{{/tree}}
but you need to pass the node id. In my example I used the
automatically generated node id, which is not something stable. Best
is to set an id for each tree node. Unfortunately you can't use (only)
wiki syntax for this because XWiki 2.1 syntax doesn't support
parameters for list items. You'll have to use HTML which is a lot more
verbose.
{{tree openTo="foo"}}
{{velocity}}
{{html}}
<ul>
<li>
<a href="$xwiki.getURL('Space.Page')">$doc.parent</a>
<ul>
<li id="foo">
<a>$doc.name</a>
</li>
</ul>
</li>
</ul>
{{/html}}
{{/velocity}}
{{/tree}}
Hope this helps,
Marius
And now I want the following behaviour: If I go to the page AM 1 > point 1.1
the tree should remark that and the page should be "blue" und the tree
should show the underpoints. I hope it is understandable what I mean. In
German:
Die aktuelle Seite sollte auch in der zweiten Tree-Navigation als gerade
geöffnet erscheinen und es sollten sich auch nur dann alle jeweiligen
Unterpunkte öffnen, eben wie im Navigationspanel.
Where can I see what xWiki Version I'm using? Feeling like a total noob, but
haven't set up this xwiki
Eric
--
View this message in context:
http://xwiki.475771.n2.nabble.com/xWiki-Change-Navigation-scheme-tp7596292p…
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users