Forums / Setup & design / It's better more sections or more classes?

It's better more sections or more classes?

Author Message

Salvatore Guarino

Tuesday 26 July 2005 1:43:47 am

I'm planning the content tree for a website.
I've 4 tipologies of products and everyone of them requires a different template, and for every product there are some specified attributes. In this case I think to have 2 chance:

1. I've to create 4 different classes (one for each product) with specified attributes, and 4 different set of override templates (one for each class)

2. I've to add all the attributes in the class product, create 4 sections (one for each product), and create 4 different set of override templates (one for each section)

The question is: everyhow I have to create 4 set of override templates, but I don't know if it's better to create 4 class, and assign templates to the class, or it's better to create 4 section and and assign templates to the sections.

I need some ideas...

Thx,

Salvatore

Frederik Holljen

Tuesday 26 July 2005 1:58:48 am

Since you require different attributes for your products I would definitely go for the sollution with more classes.
Having one class solving multiple purposes and then hiding and showing attributes according to the section tends to be hard to administrate.

Salvatore Guarino

Tuesday 26 July 2005 4:09:58 am

Thank you Frederik,
I will try with your solution.

Thx,

Salvatore