[jira] [Updated] (OFBIZ-6152) Add a label element into menu widgets for menu entries separation
[ https://issues.apache.org/jira/browse/OFBIZ-6152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux updated OFBIZ-6152: --- Description: This could be usefull to separate and "group" menu entries. Something like !Image 059.png! An alternative is to modify htmlMenuMacroLibrary.ftl as below {code:java} Index: framework/widget/templates/htmlMenuMacroLibrary.ftl === --- framework/widget/templates/htmlMenuMacroLibrary.ftl (revision 1634839) +++ framework/widget/templates/htmlMenuMacroLibrary.ftl (working copy) @@ -28,7 +28,7 @@ - + class="sb-slidebar sb-left sb-style-overlay"> <#macro renderMenuEnd boundaryComment=""> @@ -62,7 +62,12 @@ <#macro renderMenuItemBegin style toolTip linkStr containsNestedMenus> - class="${style}"<#if toolTip?has_content> title="${toolTip}"><#if linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> + <#if style?has_content && style == "h3"> + +<#if linkStr?has_content>${linkStr}<#rt/> + <#else> + class="${style}"<#if toolTip?has_content> title="${toolTip}"><#if linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> + <#macro renderMenuItemEnd containsNestedMenus> {code} The CSS classes used come from [-http://plugins.adchsm.me/slidebars/-|http://plugins.adchsm.me/slidebars/-] now [https://www.adchsm.com/slidebars/]. The result is simple and quite good, but all that is more hackish, though maybe enough? After all menus don't need much more... was: This could be usefull to separate and "group" menu entries. Something like !Image 059.png! An alternative is to modify htmlMenuMacroLibrary.ftl as below {code} Index: framework/widget/templates/htmlMenuMacroLibrary.ftl === --- framework/widget/templates/htmlMenuMacroLibrary.ftl (revision 1634839) +++ framework/widget/templates/htmlMenuMacroLibrary.ftl (working copy) @@ -28,7 +28,7 @@ - + class="sb-slidebar sb-left sb-style-overlay"> <#macro renderMenuEnd boundaryComment=""> @@ -62,7 +62,12 @@ <#macro renderMenuItemBegin style toolTip linkStr containsNestedMenus> - class="${style}"<#if toolTip?has_content> title="${toolTip}"><#if linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> + <#if style?has_content && style == "h3"> + +<#if linkStr?has_content>${linkStr}<#rt/> + <#else> + class="${style}"<#if toolTip?has_content> title="${toolTip}"><#if linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> + <#macro renderMenuItemEnd containsNestedMenus> {code} The CSS classes used come from -http://plugins.adchsm.me/slidebars/- https://www.adchsm.com/slidebars/. The result is simple and quite good, but all that is more hackish, though maybe enough? After all menus don't need much more... > Add a label element into menu widgets for menu entries separation > - > > Key: OFBIZ-6152 > URL: https://issues.apache.org/jira/browse/OFBIZ-6152 > Project: OFBiz > Issue Type: Sub-task > Components: framework, themes >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Labels: menu, separation > Attachments: Image 059.png > > > This could be usefull to separate and "group" menu entries. Something like > !Image 059.png! > An alternative is to modify htmlMenuMacroLibrary.ftl as below > {code:java} > Index: framework/widget/templates/htmlMenuMacroLibrary.ftl > === > --- framework/widget/templates/htmlMenuMacroLibrary.ftl (revision > 1634839) > +++ framework/widget/templates/htmlMenuMacroLibrary.ftl (working copy) > @@ -28,7 +28,7 @@ > > > > - > + class="sb-slidebar sb-left > sb-style-overlay"> > > <#macro renderMenuEnd boundaryComment=""> > @@ -62,7 +62,12 @@ > > <#macro renderMenuItemBegin style toolTip linkStr containsNestedMenus> > - class="${style}"<#if > toolTip?has_content> title="${toolTip}"><#if > linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> > + <#if style?has_content && style == "h3"> > + > +<#if linkStr?has_content>${linkStr}<#rt/> > + <#else> > + class="${style}"<#if > toolTip?has_content> title="${toolTip}"><#if > linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> > + > > <#macro renderMenuItemEnd containsNestedMenus> > {code} > The CSS classes used come from > [-http://plugins.adchsm.me/slidebars/-|http://plugins.adchsm.me/slidebars/-] > now [https://www.adchsm.com/slidebars/]. The result is simple and quite good, > but all that is more hackish, though maybe enough? After all menus don't need > muc
[jira] [Updated] (OFBIZ-6152) Add a label element into menu widgets for menu entries separation
[ https://issues.apache.org/jira/browse/OFBIZ-6152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux updated OFBIZ-6152: --- Description: This could be usefull to separate and "group" menu entries. Something like !Image 059.png! An alternative is to modify htmlMenuMacroLibrary.ftl as below {code} Index: framework/widget/templates/htmlMenuMacroLibrary.ftl === --- framework/widget/templates/htmlMenuMacroLibrary.ftl (revision 1634839) +++ framework/widget/templates/htmlMenuMacroLibrary.ftl (working copy) @@ -28,7 +28,7 @@ - + class="sb-slidebar sb-left sb-style-overlay"> <#macro renderMenuEnd boundaryComment=""> @@ -62,7 +62,12 @@ <#macro renderMenuItemBegin style toolTip linkStr containsNestedMenus> - class="${style}"<#if toolTip?has_content> title="${toolTip}"><#if linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> + <#if style?has_content && style == "h3"> + +<#if linkStr?has_content>${linkStr}<#rt/> + <#else> + class="${style}"<#if toolTip?has_content> title="${toolTip}"><#if linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> + <#macro renderMenuItemEnd containsNestedMenus> {code} The CSS classes used come from -http://plugins.adchsm.me/slidebars/- https://www.adchsm.com/slidebars/. The result is simple and quite good, but all that is more hackish, though maybe enough? After all menus don't need much more... was: This could be usefull to separate and "group" menu entries. Something like !Image 059.png! An alternative is to modify htmlMenuMacroLibrary.ftl as below {code} Index: framework/widget/templates/htmlMenuMacroLibrary.ftl === --- framework/widget/templates/htmlMenuMacroLibrary.ftl (revision 1634839) +++ framework/widget/templates/htmlMenuMacroLibrary.ftl (working copy) @@ -28,7 +28,7 @@ - + class="sb-slidebar sb-left sb-style-overlay"> <#macro renderMenuEnd boundaryComment=""> @@ -62,7 +62,12 @@ <#macro renderMenuItemBegin style toolTip linkStr containsNestedMenus> - class="${style}"<#if toolTip?has_content> title="${toolTip}"><#if linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> + <#if style?has_content && style == "h3"> + +<#if linkStr?has_content>${linkStr}<#rt/> + <#else> + class="${style}"<#if toolTip?has_content> title="${toolTip}"><#if linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> + <#macro renderMenuItemEnd containsNestedMenus> {code} The CSS classes used come from http://plugins.adchsm.me/slidebars/. The result is simple and quite good, but all that is more hackish, though maybe enough? After all menus don't need much more... > Add a label element into menu widgets for menu entries separation > - > > Key: OFBIZ-6152 > URL: https://issues.apache.org/jira/browse/OFBIZ-6152 > Project: OFBiz > Issue Type: Sub-task > Components: framework, themes >Reporter: Jacques Le Roux >Assignee: Jacques Le Roux >Priority: Minor > Labels: menu, separation > Attachments: Image 059.png > > > This could be usefull to separate and "group" menu entries. Something like > !Image 059.png! > An alternative is to modify htmlMenuMacroLibrary.ftl as below > {code} > Index: framework/widget/templates/htmlMenuMacroLibrary.ftl > === > --- framework/widget/templates/htmlMenuMacroLibrary.ftl (revision > 1634839) > +++ framework/widget/templates/htmlMenuMacroLibrary.ftl (working copy) > @@ -28,7 +28,7 @@ > > > > - > + class="sb-slidebar sb-left > sb-style-overlay"> > > <#macro renderMenuEnd boundaryComment=""> > @@ -62,7 +62,12 @@ > > <#macro renderMenuItemBegin style toolTip linkStr containsNestedMenus> > - class="${style}"<#if > toolTip?has_content> title="${toolTip}"><#if > linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> > + <#if style?has_content && style == "h3"> > + > +<#if linkStr?has_content>${linkStr}<#rt/> > + <#else> > + class="${style}"<#if > toolTip?has_content> title="${toolTip}"><#if > linkStr?has_content>${linkStr}<#if containsNestedMenus><#rt/> > + > > <#macro renderMenuItemEnd containsNestedMenus> > {code} > The CSS classes used come from -http://plugins.adchsm.me/slidebars/- > https://www.adchsm.com/slidebars/. The result is simple and quite good, but > all that is more hackish, though maybe enough? After all menus don't need > much more... -- This message was sent by Atlassian Jira (v8.3.4#803005)