PDA

View Full Version : Display child categories on CTGY


cdelarte
09-06-06, 07:41 PM
My Parent categories only contain child categories (no actual products), which is what I require.

However, when the parent category is clicked on the category menu, the parent category page which is displayed is empty and not very interesting to look at.

How can I automatically populate my parent category pages with images or html containing links to their children categories?

Pete McNamara
09-06-06, 08:07 PM
You could start by including in the category code of the parent categories, some characters that will not occur in any part of any category code e.g. "ZZ".

Then, create a conditional which displays diiferent category product list layout for category codes containing "ZZ" with an "Else" to display the normal category product list layout.

Then you could create a separate fake product for each of these parent categories which only contained the text and image links you wanted.

You would need Weiland's Category Tree module to create the links to the sub categories. You would need to be careful what text you included for the fake products if you were concerned about them showing up in a product search.

Alternatively, you could use Sebenza's Category Template Manager, which should do all, especially if you are already using Sebenza's Category Tree module.

Another possibility is to use Latu's Wow Wow Widgets.