Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > how to show category and sub-category? View modes: 
User avatar
Member
Member
gujju121-31-yahoo - 3/22/2010 8:27:38 PM
   
how to show category and sub-category?
I have a structure like this

-Products
---Living Room
---Sofas and Love seats
---Fabric sofa
---Leather Sofa
---Recliner
---Fabric
---Leather
---Dinning Room
---Tables
---Chairs

I want to show thumbnail images for for living room,Dinning room etc, then when customer click on living room I want to show thumbnail images for sub categories like sofas,recliner etc.How can I add and show thumbnail images for Livingroom ,dinning room etc?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 4/4/2010 5:12:22 AM
   
RE:how to show category and sub-category?
Hello,

I would recommend creating custom document type for 'rooms' and another one for 'subcategories' and create tree structure similar to following sample one:

-products (page)
-- living room (room)
--- sofa (subcategory)
--- reciner (subcategory)

Then you should add repeater configured to display documents of type 'room' under 'products' page and another repeater configured to display documents of type 'subcategory' under current page (path: ./%) so when you come to 'room' page the documents under this page are displayed.

You can add custom fields of type 'image selection' or 'file upload' for storing thumbnails. Alternatively you can store thumbnails as attachments. Please see File management overview for more details.

Best Regards,

Martin Dobsicek