We have this in our custom app...we've customized
categorydetail.ftl around line 57 to include the
following bit of code - this simply adds the
subcategories:



<#-- Place Subcategories above any products in Current
Cateogory -->
<#assign parentProductCategoryRollups =
productCategory.getRelated("ParentProductCategoryRollup")>
<#if parentProductCategoryRollups.size() != 0>
<table>      <tr><td><hr class='sepbar'/></td></tr>
<tr valign='middle'><td>
|
<#list parentProductCategoryRollups?sort as
productCategoryRollup>
<#assign curCategory =
productCategoryRollup.getRelatedOne("CurrentProductCategory")>
      <a
href="<@ofbizUrl>/category/~category_id=${curCategory.productCategoryId}/~pcategory=${productCategory.productCategoryId?if_exists}</@ofbizUrl>"

        
class="buttontext">${curCategory.description?if_exists}</a>
|
</#list>
 </td></tr>
      <tr><td><hr class='sepbar'/></td></tr>
</table></#if>
<#-- Custom end -->

--- Jason Ling <[EMAIL PROTECTED]> wrote:

> Anybody have any ideas?
> 
> Was looking for an answer and came across this old
> post:
> 
>
http://lists.ofbiz.org/pipermail/users/2002-September/000189.html
> 
> 
> >>From: ofbiz-users-admin at lists.sourceforge.net
> >>[mailto:ofbiz-users-admin at
> lists.sourceforge.net]On Behalf Of Colin
> >>Sampaleanu
> >>Sent: Tuesday, September 24, 2002 10:56 AM
> >>To: ofbiz-users at lists.sourceforge.net
> >>Subject: [OFBiz-Users]showing subcategories in
> category detail listing
> >>as well as category member products
> >>
> >>
> >>Is there are easy or built-in way to have a
> category detail listing show
> >>some subcategories (some sort of summary detail
> for each subcategory) in
> >>the center detail area, as well as the present
> display of products that
> >>are members of that category?
> >>
> >>I have a category hierarchy where only the lowest
> level actually
> >>contains products. While the user can browse to
> the appropriate category
> >>via the left side category browser, it would be
> nice if clicking on a
> >>mid-level category showed sub-categories in the
> main detail pane, since
> >>otherwise the main detail pane is pretty empty.
> >>
> >>One way I can think of doing this is to specify
> another detail template
> >>for these categories, and in that template
> actually go an enumerate the
> >>subcategories and display this. Seems completely
> doable, but I would
> >>rather not get into this work if there is already
> a mechanism to do this.
> >>
> >>Thanks for any tips,
> 

Reply via email to