ASPX templates
Version 3.x > ASPX templates > Multiple Templates for same site View modes: 
User avatar
Member
Member
basire-gmail - 2/3/2009 11:48:56 AM
   
Multiple Templates for same site
The company I work for is moving to ASP.NET(currently we use PHP) and kentico is one of the CMSs we are looking at to manage out public facing sites. Now one thing we are going to be porting is out public facing booking engine. Current the way the booking engine works is that we have a number of sites using this same booking engine and depend on what is passed in the query string and/or what the a cookie is set to, we should different headers/footers but the same middle code(which is where the real work is done). Now during the past 3-4 weeks of playing with ASP.NET and the last few days of playing with Kentico CMS, I have not found a way to change out the header/footer(or for ASP.NET, the master page) based off of cookie/query string data. so for instance if I have

book.mycompany.com/book_trip.aspx?rrc=company_1

book_trip.aspx would load the master page that is setup for company 1 and if i had

book.mycompany.com/book_trip.aspx?rrc=company_2

book_trip.aspx would load the master page that is setup for company 2 and so on. Is this functionality i am looking for possible with Kentico(so that we don't have to manage separate code for each companies booking engine)?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/4/2009 5:22:42 AM
   
RE:Multiple Templates for same site
Hi,

The easiest solution seems to be to add to the page tempalte layout some decision loginc, some script, which will display appropriate layout according to the query string.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
basire-gmail - 2/4/2009 8:58:01 AM
   
RE:Multiple Templates for same site
Cool, i did some more research and found out how to dynamically change the master page dynamically.