Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Dcoument Template View modes: 
User avatar
Member
Member
adegiamb - 8/10/2011 12:10:33 PM
   
Dcoument Template
Trying to figure out how you can do the following. Let’s say we have a site that contains two pages that are using the same Page template that display a list of cars. On page 1 we have the list of cars listed horizontal but on page 2 we have the list displayed vertical. What I am hoping of doing is that on the car container I can say I want it to render the list as this and the page will know what view to display
Is this possible?

CMS Tree
- Page 1 – Car template
- Cars – Document Template 2
- Car 1
- Car 2
- Car 3

- Page 2 – Care template
- Cars – Document Template 1
- Car 1
- Car 2
- Car 3


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/11/2011 1:34:05 AM
   
RE:Dcoument Template
Hi,

Since the web part properties are shared across page templates - all documents using the same page template have the same web part settings, you need to use two page templates for each section. Or, second option is to set the web part properties dynamically in the code behind according to the location of current document.

Best regards,
Juraj Ondrus