Author: jonesde
Date: Thu Feb 22 06:20:54 2007
New Revision: 510529

URL: http://svn.apache.org/viewvc?view=rev&rev=510529
Log:
Added pcategory parameter, and also changed to use the /~= style to be search 
engine friendly

Modified:
    
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl

Modified: 
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl?view=diff&rev=510529&r1=510528&r2=510529
==============================================================================
--- 
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl
 (original)
+++ 
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl
 Thu Feb 22 06:20:54 2007
@@ -31,7 +31,7 @@
     <#elseif productCategoryLink.linkTypeEnumId == "PCLT_ABS_URL">
       <#assign linkUrl = productCategoryLink.linkInfo?if_exists/>
     <#elseif productCategoryLink.linkTypeEnumId == "PCLT_CAT_ID">
-      <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, 
response, "category?category_id=" + productCategoryLink.linkInfo)/>
+      <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, 
response, "category/~category_id=" + productCategoryLink.linkInfo) + 
"/~pcategory=" + productCategoryId/>
       <#assign linkProductCategory = 
delegator.findByPrimaryKeyCache("ProductCategory", 
Static["org.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", 
productCategoryLink.linkInfo))/>
       <#assign linkCategoryContentWrapper = 
Static["org.ofbiz.product.category.CategoryContentWrapper"].makeCategoryContentWrapper(linkProductCategory,
 request)/>
       <#assign titleText = 
productCategoryLink.titleText?default(linkCategoryContentWrapper.get("CATEGORY_NAME"))?if_exists/>


Reply via email to