[xwiki-users] Horizontal menu like xwiki.org
I want to have in my xwiki horizontal menu looks like xwiki.org home page. I started to search extentions.xwiki.org and found Navigation Menu Wiki Macro (http://extensions.xwiki.org/xwiki/bin/view/Extension/Navigation+Menu+Wiki+Ma...). This menu works but looks not enought .. For example (main problem) - when using sub-entries - its not shows as a combo. Also stylesheet is different. As I understand, at xwiki.org home page you are using same macro with some javascript & stylesheet modifications: http://www.xwiki.org/xwiki/bin/view/XWikiOrgCode/MenuMacro It is possible to download somewhere this extended version of Xwiki.org MenuMacro? Or have some policy or licence limitations?. -- Thanks befohand! Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/Horizontal-menu-like-xwiki-org-tp7411641p7... Sent from the XWiki- Users mailing list archive at Nabble.com.
And one more problem with horizontal menu from "Navigation+Menu+Wiki+Macro" - on IE 8.0 not shows correctly! -- View this message in context: http://xwiki.475771.n2.nabble.com/Horizontal-menu-like-xwiki-org-tp7411641p7... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Eugen, You can download the menu code used for xwiki.org at http://extensions.xwiki.org/xwiki/bin/download/Extension/Navigation+Menu+Wik... The xwiki.org menu was initially a variant of the navigation menu macro. I rewrite it without JS (because of a flickering problem) and made it work only with CSS. The code was done only for the horizontal layout. Hope this helps, Caty On Wed, Mar 28, 2012 at 11:14, Eugen Colesnicov <[email protected]>wrote:
And one more problem with horizontal menu from "Navigation+Menu+Wiki+Macro" - on IE 8.0 not shows correctly!
-- View this message in context: http://xwiki.475771.n2.nabble.com/Horizontal-menu-like-xwiki-org-tp7411641p7... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Ecaterina Moraru (Valica) wrote
You can download the menu code used for xwiki.org at http://extensions.xwiki.org/xwiki/bin/download/Extension/Navigation+Menu+Wik...
Thanks a lot Caty! All working great! Eugen -- View this message in context: http://xwiki.475771.n2.nabble.com/Horizontal-menu-like-xwiki-org-tp7411641p7... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello, i also used the branch of the menu and tried to include it. I altered the code for the Menu Panel Extension: {{velocity}} ##$xwiki.ssx.use('xwiki:XWikiOrgCode.MenuMacro') ##{{menu id="navigationMenu"}} {{menu type="horizontal" position="left" id="mainMenu"}} #set($menuContentProperty = $xwiki.getDocument("MenuCode.MenuConfig").getObject("MenuCode.MenuConfig").getProperty('content').value) #if("$!menuContentProperty" == '' or "$!menuContentProperty" == "\\") * [[Edit the menu in administration>>XWiki.XWikiPreferences?editor=globaladmin§ion=MenuConfig]] #else $menuContentProperty #end {{/menu}} {{/velocity}} This leads to the behavior that the menu is rendered in the panel and not on top of the page. Can you give me a hint how to include the xwiki menu to the top of the page. I'm new to xwiki and i do not know if i can set the menu globally for all spaces. All the best Andreas -- View this message in context: http://xwiki.475771.n2.nabble.com/Horizontal-menu-like-xwiki-org-tp7411641p7... Sent from the XWiki- Users mailing list archive at Nabble.com.
For my version you need to make changes in the Skin. When you download the xar you have a XWikiOrgCode.Skin page. You should set this page as your active skin in Administration -> Presentation -> Skin or add to your skin in the header section these lines: #template('global.vm') $xwiki.includeForm('xwiki:XWikiOrgCode.MenuMacro',false) Hope this helps, Caty On Thu, Jul 26, 2012 at 4:51 PM, eisioriginal < [email protected]> wrote:
Hello,
i also used the branch of the menu and tried to include it. I altered the code for the Menu Panel Extension:
{{velocity}} ##$xwiki.ssx.use('xwiki:XWikiOrgCode.MenuMacro') ##{{menu id="navigationMenu"}} {{menu type="horizontal" position="left" id="mainMenu"}} #set($menuContentProperty =
$xwiki.getDocument("MenuCode.MenuConfig").getObject("MenuCode.MenuConfig").getProperty('content').value) #if("$!menuContentProperty" == '' or "$!menuContentProperty" == "\\") * [[Edit the menu in
administration>>XWiki.XWikiPreferences?editor=globaladmin§ion=MenuConfig]] #else $menuContentProperty #end {{/menu}} {{/velocity}}
This leads to the behavior that the menu is rendered in the panel and not on top of the page. Can you give me a hint how to include the xwiki menu to the top of the page. I'm new to xwiki and i do not know if i can set the menu globally for all spaces.
All the best
Andreas
-- View this message in context: http://xwiki.475771.n2.nabble.com/Horizontal-menu-like-xwiki-org-tp7411641p7... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Ecaterina Moraru (Valica) -
eisioriginal -
Eugen Colesnicov