Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4081 Form widget improvements
  3. OFBIZ-6152

Add a label element into menu widgets for menu entries separation

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • None
    • None
    • framework, themes
    • Bug Crush Event - 21/2/2015

    Description

      This could be usefull to separate and "group" menu entries. Something like

      An alternative is to modify htmlMenuMacroLibrary.ftl as below

      Index: framework/widget/templates/htmlMenuMacroLibrary.ftl
      ===================================================================
      --- framework/widget/templates/htmlMenuMacroLibrary.ftl	(revision 1634839)
      +++ framework/widget/templates/htmlMenuMacroLibrary.ftl	(working copy)
      @@ -28,7 +28,7 @@
         </#if>
         <ul>
           <li>
      -      <ul>
      +      <ul <#if "app-navigation"== id>class="sb-slidebar sb-left sb-style-overlay"</#if>>
       </#macro>
      
       <#macro renderMenuEnd boundaryComment="">
      @@ -62,7 +62,12 @@
       </#macro>
      
       <#macro renderMenuItemBegin style toolTip linkStr containsNestedMenus>
      -        <li<#if style?has_content> class="${style}"</#if><#if toolTip?has_content> title="${toolTip}"</#if>><#if linkStr?has_content>${linkStr}</#if><#if containsNestedMenus><ul></#if><#rt/>
      +  <#if style?has_content && style == "h3">
      +    <ul class="task-menu">
      +    <li><h3><#if linkStr?has_content>${linkStr}</#if></h3><#rt/>
      +  <#else>
      +    <li<#if style?has_content> class="${style}"</#if><#if toolTip?has_content> title="${toolTip}"</#if>><#if linkStr?has_content>${linkStr}</#if><#if containsNestedMenus><ul></#if><#rt/>
      +  </#if>
       </#macro>
      
       <#macro renderMenuItemEnd containsNestedMenus>
      

      The CSS classes used come from 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...

      Attachments

        1. Image 059.png
          5 kB
          Jacques Le Roux

        Activity

          People

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: