Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Multiple templates with small differences / How to avoid them View modes: 
User avatar
Certified Developer 8
Certified Developer 8
liquidmagic - 8/31/2011 9:11:39 AM
   
Multiple templates with small differences / How to avoid them
Hello,

I have the following scenario.
I have a website with the following structure:

1. Home
2. News
a. Sports
b. Science
c. Politics
d. etc.

Under each category there are articles. The category page uses a template and the inner page uses another template. Normally the category page for all categories should be the same and the inner page should be the same as well. But each of the categories have different advertising zones. So, I need to define on each category different templates in order to have different advertising zones.

Is there another way to do such a thing?

I was thinking of creating a similar structure under a different folder. Something like the following:

Advertising
a. Sports
b. Science
c. Politics

And create those zones there (using a document type) and use this structure on repeaters that get data from the relevant path.

Any ideas would be appreciated.

Thank you,
Dimitris


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/4/2011 1:39:08 AM
   
RE:Multiple templates with small differences / How to avoid them
Hi,

Straightforward solution is to create separate page template for each section. But, this could be a pain.

Second option I see right now is to play with visual inheritance and with page place holders. The idea is that you will add another layer of pages, "submaster pages" for each category. These won't be displayed on the live site, they will just hold the page template with the advertising zones and page placeholder in which the category and its sub-documents will be displayed.

For example:
-Sports (page template with ads zone)
--Sports
-----articles
-Science(page template with ads zone)
--Science
-----articles


Best regards,
Juraj Ondrus