+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Change Site/Page Theme at run time

Change Site/Page Theme at run time

2 posts, 0 answered
  1. Christian Calderon
    Christian Calderon avatar
    5 posts
    Registered:
    06 Nov 2009
    03 Dec 2009
    Link to this post
    Hello all,

    The web site that we are planning on developing requires to be "branded" for each specific customer. The branding will be in the form of perhaps different colors/logo, etc. I'm plannign to use the themes to do this - so I will have a default theme and then a theme for each customer. The pages will be all the same (functionality and content).

    Now, in order for me to do this, I need somehow to change the theme of the page being rendered at run time, depending on some information (user).

    Is there a way I can do this in sitefinity? I know that on a regular ASP.NET page I could do it on the Page PreInit event and that normally you would create a base page that does this and then future pages will inherit from the custom base page. This obviously does not apply to sitefinity as cms rendeting engine this and I don't have access to that event.

    Any toughts or help is GREATELY appreciated, this is somewhat a showstopper for me :-(

    Regards,
    Christian C.
  2. Christian Calderon
    Christian Calderon avatar
    5 posts
    Registered:
    06 Nov 2009
    03 Dec 2009
    Link to this post
    Note to myself: search the forum before posting a question :-)

    The answer I was looking for is here:

    http://www.sitefinity.com/support/forums/sitefinity-3-x/designing-with-sitefinity/front-end-change-theme-via-drop-down.aspx

    This will do it -  very clever of an approach, made it quite easy for me.
2 posts, 0 answered