[xwiki-devs] Menu Application - Hide when user doesn't have permissiont to view menu code.
At my location we run a locked-down wiki for our operations manual. With the new Menu Application when a user was unregistered, the Menu Application would throw an error on the Login screen. I was able to fix this by editing Menu.UIExtensionSheet in wiki mode. I changed one line for the horizontal menu. The vertical menus don't work on any of my wiki servers so I was not able to fix and test that. (See http://xwiki.475771.n2.nabble.com/Looking-for-Menu-Application-Bug-Verificat...) Here is the line I changed: Old #set ($menuPanel = "{{menu type=""vertical collapsible open""}}{{include reference=""$doc.prefixedFullName"" /}}{{/menu}}") New #set ($menuPanel = "{{velocity}} ${escapetool.h}panelheader(""$doc.plainTitle"") {{menu type=""vertical collapsible open""}}{{include reference=""$doc.prefixedFullName"" /}}{{/menu}} ${escapetool.h}panelfooter() {{/velocity}}") I hope this helps someone. :) -- View this message in context: http://xwiki.475771.n2.nabble.com/Menu-Application-Hide-when-user-doesn-t-ha... Sent from the XWiki- Dev mailing list archive at Nabble.com.
See http://jira.xwiki.org/browse/XWIKI-10171 . Check the changes in the Commits tab. On Thu, Mar 20, 2014 at 7:58 PM, DeHaynes <[email protected]> wrote:
At my location we run a locked-down wiki for our operations manual. With the new Menu Application when a user was unregistered, the Menu Application would throw an error on the Login screen. I was able to fix this by editing Menu.UIExtensionSheet in wiki mode. I changed one line for the horizontal menu. The vertical menus don't work on any of my wiki servers so I was not able to fix and test that. (See http://xwiki.475771.n2.nabble.com/Looking-for-Menu-Application-Bug-Verificat...) Here is the line I changed:
Old #set ($menuPanel = "{{menu type=""vertical collapsible open""}}{{include reference=""$doc.prefixedFullName"" /}}{{/menu}}")
New #set ($menuPanel = "{{velocity}} ${escapetool.h}panelheader(""$doc.plainTitle"") {{menu type=""vertical collapsible open""}}{{include reference=""$doc.prefixedFullName"" /}}{{/menu}} ${escapetool.h}panelfooter() {{/velocity}}")
I hope this helps someone. :)
-- View this message in context: http://xwiki.475771.n2.nabble.com/Menu-Application-Hide-when-user-doesn-t-ha... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
DeHaynes -
Marius Dumitru Florea