Re: [xwiki-users] Different Horizontal Menus for different pages and its childs

2016-09-14 Thread Eugen Colesnicov
Eugen Colesnicov wrote
> Sorry, but I cannot understand how correctly and simply is possible to use
> different horizontal menus.
> I need to configure that 1-st horizontal menu will show for Page1 and all
> its child pages, and 2-nd horizontal menu will show for Page2 and all its
> child pages. In my example Page1 & Page2 looks like old spaces - so I need
> to define different horizontal menus for different spaces (in old
> definitions). Can someone explain me correct way?
> I using XWiki 8.2.1 and standard Menu application.

I found solution, maybe will be useful for others.

I created one menu with velocity code inside with:
#if($stringtool.split($doc.fullName,".").get(0) == 'Page1')
... MenuStructure1
#else
... MenuStructure2
#end



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Different-Horizontal-Menus-for-different-pages-and-its-childs-tp7601169p7601204.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Different Horizontal Menus for different pages and its childs

2016-09-12 Thread Eugen Colesnicov
Hello!

Sorry, but I cannot understand how correctly and simply is possible to use
different horizontal menus.
I need to configure that 1-st horizontal menu will show for Page1 and all
its child pages, and 2-nd horizontal menu will show for Page2 and all its
child pages. In my example Page1 & Page2 looks like old spaces - so I need
to define different horizontal menus for different spaces (in old
definitions). Can someone explain me correct way?
I using XWiki 8.2.1 and standard Menu application.

--
Eugen



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Different-Horizontal-Menus-for-different-pages-and-its-childs-tp7601169.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users