1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
<#macro nav section>
<#local cats=Static["org.ofbiz.product.category.CategoryWorkerMiniSites"].fetchChildrenByType(request, section, "CATALOG_CATEGORY")>
<#if cats?has_content>
<#list cats as category>
<li><a href="<@ofbizUrl>/category/~category_id=${category.productCategoryId}/~pcategory=${section}</@ofbizUrl>">${category.description}</a></li>
</#list>
</#if>
</#macro>
......
...
...
..
<div id="navJPA">
<ul id="navul"
<#assign categs=Static["org.ofbiz.product.category.CategoryWorkerMiniSites"].fetchChildrenByType(request, "1", "CATALOG_CATEGORY")>
<#assign categSize=categs?size>
<#list categs as categ>
<#assign okColor=false/>
<#if currentCateg?exists>
<#assign okColor=Static["com.vivre.product.CatalogHelper"].checkTrailItem(request, categ.getString("productCategoryId"),currentCateg)>
</#if>
<#assign categoryWrapper=Static["org.ofbiz.product.category.CategoryContentWrapper"].makeCategoryContentWrapper(categ, request)/>
><li><a href="<@ofbizUrl>/category/~category_id=${categ.productCategoryId}</@ofbizUrl>" onmouseover="category${categ_index}.src='<@ofbizContentUrl>${categ.linkTwoImageUrl?if_exists}</@ofbizContentUrl>';" onmouseout="category${categ_index}.src='<@ofbizContentUrl><#if okColor>${categ.linkTwoImageUrl?if_exists}<#else>${categ.linkOneImageUrl?if_exists}</#if></@ofbizContentUrl>';"><#if categ_index!=0><img src="<@ofbizContentUrl>/images/p.gif</@ofbizContentUrl>" width="96" border="0" height="20" class="topNavSpacer"/></#if><img src="<@ofbizContentUrl><#if okColor>${categ.linkTwoImageUrl?if_exists}<#else>${categ.linkOneImageUrl?if_exists}</#if></@ofbizContentUrl>" name="category${categ_index}" border="0" alt="${categ.description}"/><#if categSize==categ_index+1><img src="<@ofbizContentUrl>/images/p.gif</@ofbizContentUrl>" width="4" border="0" height="10" class="topNavSpacer"/></#if></a
><ul style="top: 13px" <#if categ_index==0>class="first"</#if><#if categSize==categ_index+1>class="last"</#if> class="test"
><li class="image" <#if categSize==categ_index+1>style="padding-left:65px;width:105px"</#if>><img src="<@ofbizContentUrl>/images/nav/down_arrow.gif</@ofbizContentUrl>" border="0"></li>
<@nav section=categ.productCategoryId/>
</ul
></li
</#list>
></li
></ul
></div> |
Partager