Hi Jeremie,
The "Menu Structure" is rendered!
Take a look at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Menu+Application#HExam…
. As you can see there is a menu macro whose content supports wiki
syntax (including scripting!). The Menu Application uses this menu
macro. When you create a new menu (a new entry in the Menu
Application) you get a WYSIWYG editor for the "Menu Structure"
property. Whatever you put there is passed as the content of the menu
macro. In other words, the "Menu Structure" is the content of the menu
macro. So you can insert any scripting macro through the WYSIWYG
editor or you can switch to source and write there the code you need.
The only 'requirement' is that your code will generate in the end an
HTML list. Checkout the "Hierarchy Panel" example.
Hope this helps,
Marius
On Fri, Apr 18, 2014 at 11:53 AM, Jeremie BOUSQUET
<jeremie.bousquet(a)gmail.com> wrote:
Hello,
I used the Menu Application [1] to define a horizontal menu, after page
header, and it's very nice and very user-friendly.
I wonder if it could (easily) be feasible, to have the content ("Menu
Structure") of the menu rendered ? My point would be to put some velocity
scripting in it, to achieve more dynamic menus (display parts depending on
user rights, generate some lists of items, etc).
A bit like the jsx/ssx extensions do.
I had a look but I didn't find where the "magic" operates :)
Thanks,
Jeremie
[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Menu+Application
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users