From mariusdumitru.florea@xwiki.com Tue Oct 6 17:31:35 2015 From: Marius Dumitru Florea To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] xWiki - Change Navigation scheme Date: Tue, 06 Oct 2015 18:31:32 +0300 Message-ID: In-Reply-To: <1444034463826-7596309.post@n2.nabble.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1410036888436332381==" --===============1410036888436332381== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 5, 2015 at 11:41 AM, prettymuchcoverseverything 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=3D"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=3D"foo"}} {{velocity}} {{html}} {{/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=C3=B6ffnet erscheinen und es sollten sich auch nur dann alle jeweiligen > Unterpunkte =C3=B6ffnen, 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-Chang= e-Navigation-scheme-tp7596292p7596309.html > 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 --===============1410036888436332381==--