ASPX templates
Version 7.x > ASPX templates > Using diffrent templates on different sites for the same document View modes: 
User avatar
Member
Member
yuriy.chabanov-gmail - 1/16/2014 7:12:12 AM
   
Using diffrent templates on different sites for the same document
Hello,
we have multiple sites setup.
There is a need to use different web-parts set for the same document type. I found the web-parts are used in templates. However one document can have only one active template.
Is there a legal way to configure Kentico for our needs?
Thank you in advance!

User avatar
Member
Member
yuriy.chabanov-gmail - 1/16/2014 7:32:36 AM
   
RE:Using diffrent templates on different sites for the same document
I have to clarify additional complexities we faced with. The documents are originally on one site. Another sites just link the docs. Also we are about to use DB merge replication which might bring some more new gotchas here.
Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/16/2014 9:09:17 AM
   
RE:Using diffrent templates on different sites for the same document
Hello,

This would require a dynamic changing of the page template - this is pretty complex task and it can have also impact in the performance since you will have to load the page template and its web parts and everything in a custom code everytime the document is loaded.

Best regards,
Juraj Ondrus

User avatar
Member
Member
yuriy.chabanov-gmail - 1/16/2014 9:21:35 AM
   
RE:Using diffrent templates on different sites for the same document
Hello, Juraj
Thanks for reply.
Does Kentico provide ability for developers to create some custom modules for cases like that? I see I can do this in the code(which would look like a littile 'hack'), but still looking for more proper way to follow.
Are there any plans for the future to support multiple templates officially?
Thank you!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/17/2014 7:08:37 AM
   
RE:Using diffrent templates on different sites for the same document
Hi,

Regrettably, there is no native support of this feature and you can vote for the same already suggeested feature here. Alternatively, you can take advantage of conditional layouts as described in that link or here as well or you can redirect to another document with different template assigned.

Best regards,
Juraj Ondrus