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, |
I would totally be interested in seeing what can be done here as well.
I have an app where I modified the sidedeepcategory.ftl to show a preview of the other categories exploded to accomplish this - but it only works proper in my case because everything is not nested too deeply. There are definitely categories without products - where should some other type of summary would be most useful. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 Jason Ling 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, >>> |
In reply to this post by Jason Ling
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 <[hidden email]> 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, > |
Free forum by Nabble | Edit this page |