Hi everyone.

id llike to change ofbiz menu.

normal situation on leftbar is:

MENU
------------------
CATALOG1
CATALOG2
CATALOG3
CATALOG4

Category Entry 1(from catalog clicked)
Category Entry 2(from catalog clicked)
Category Entry 3(from catalog clicked)
------------------

id like to have

MENU 
--------------------------
CATALOG1
  Category1
  Category1
CATALOG2
  Category2
  Category2
  Category2
CATALOG3
  Category3
CATALOG4
  Category4
  Category4





responsible for that stuff seems to be choosecatalog.ftl +
sidedeepcategory.ftl

i copied some stuff from choosecatalog in my sidedeepcategory, so that atm
i am using sidedeepcategory only to create my menu.

my idea is/was to put the <#list> which is responsible for creating the
categories
into the <#list> which creates the Catalog entries. So for each Catalog
Entry
there should be a list of its categories right under it in the menu

how can i tell this code to that the categorylist should display a specifc
catalog


                 <#if topLevelList?has_content>
                          <#list topLevelList as category>                      
  

                              <@categoryList parentCategory=category
category=category/>
                        
                          </#list>  


---------------------------------------------------------------------------------------

Basically it works fine it creates a menu etc. BUT it creates for each
Catalog Entry in the menu
the same category below. i found no way to tell which category to display.

any ideas ???

Help would be great.

Thx in advance,
Johannes


THIS IS BASICALLY MY IDEA



   <#list catalogCol as catalogId> <!-- KATALOGNAMEN DARSTELLEN -->
            
            <#assign thisCatalogName =
Static["org.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request,
catalogId)>
             
<!--             <form><input name="CURRENT_CATALOG_ID"
value="${currentCatalogId}"></form> -->
                  
                  <div class="browsecategorytext" style="margin-left:5px">
                    &nbsp; "<@ofbizUrl
/main/~CURRENT_CATALOG_ID=${catalogId}</@ofbizUrl>"
class="browsecategorybutton">XXX ${catalogId} ${thisCatalogName} <br>
                  </div> 
                       <!--
                                                            
${requestParameters.CURRENT_CATALOG_ID?if_exists}<br>
                                                             ${catalogId}
                                                             -->

               <br>
                
                <!-- DARSTELLUNG UNTERPUNKTE -->
                 <#if topLevelList?has_content>
                          <#list topLevelList as category>                      
  

                              <@categoryList parentCategory=category
category=category/>
                        
                          </#list>  
                          <br>
                  </#if>
        
                 <!-- DARSTELLUNG UNTERPUNKTE ENDE -->
 
   </#list> <!-- KATALOGNAMEN -->


-- 
View this message in context: 
http://www.nabble.com/Creating-new-menu-%28Categorylist-for-each-Catalog-entry-in-menu%29-tp17646141p17646141.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to