You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jo...@apache.org on 2007/02/22 11:06:24 UTC

svn commit: r510455 - in /ofbiz/trunk/applications: ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl product/data/ProductTypeData.xml

Author: jonesde
Date: Thu Feb 22 02:06:22 2007
New Revision: 510455

URL: http://svn.apache.org/viewvc?view=rev&rev=510455
Log:
Added another ProductCategoryLink type for linking to other categories

Modified:
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl
    ofbiz/trunk/applications/product/data/ProductTypeData.xml

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=510455&r1=510454&r2=510455
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl Thu Feb 22 02:06:22 2007
@@ -26,6 +26,8 @@
       <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "keywordsearch?" + productCategoryLink.linkInfo)/>
     <#elseif productCategoryLink.linkTypeEnumId == "PCLT_ABS_URL">
       <#assign linkUrl = productCategoryLink.linkInfo?if_exists/>
+    <#elseif productCategoryLink.linkTypeEnumId == "PCLT_ABS_URL">
+      <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "category?category_id=" + productCategoryLink.linkInfo)/>
     </#if>
     <div class="productcategorylink">
       <#if productCategoryLink.imageUrl?has_content>

Modified: ofbiz/trunk/applications/product/data/ProductTypeData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/data/ProductTypeData.xml?view=diff&rev=510455&r1=510454&r2=510455
==============================================================================
--- ofbiz/trunk/applications/product/data/ProductTypeData.xml (original)
+++ ofbiz/trunk/applications/product/data/ProductTypeData.xml Thu Feb 22 02:06:22 2007
@@ -112,6 +112,7 @@
     <EnumerationType description="Product Category Link Type" enumTypeId="PCAT_LINK_TYPE" hasTable="N" parentTypeId=""/>
     <Enumeration description="Search Parameters" enumCode="SEARCH_PARAM" enumId="PCLT_SEARCH_PARAM" sequenceId="01" enumTypeId="PCAT_LINK_TYPE"/>
     <Enumeration description="Absolute URL" enumCode="ABS_URL" enumId="PCLT_ABS_URL" sequenceId="02" enumTypeId="PCAT_LINK_TYPE"/>
+    <Enumeration description="Category ID" enumCode="CAT_ID" enumId="PCLT_CAT_ID" sequenceId="03" enumTypeId="PCAT_LINK_TYPE"/>
     
     <FacilityType description="Building" facilityTypeId="BUILDING" hasTable="N" parentTypeId=""/>
     <FacilityType description="Floor" facilityTypeId="FLOOR" hasTable="N" parentTypeId=""/>