Try our conversational search powered by Generative AI!

In multi-site environment have a DefaultPageController per site.

Vote:
 

Hi all,

I was wondering, is it possible to have a DefaultPageController per site in a EPiServer multi-site environment.
We have multiple sites running in one EPiServer instance.

Thanks in advance!

Regards,

Robert.

#82021
Mar 04, 2014 12:54
Vote:
 

One way is to hook up an eventhandler to TemplateResolver.TemplateResolving (or TemplateResolved) and there set which template to use. See http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=79313

#82039
Mar 04, 2014 16:52
Vote:
 

Johan, wouldn't having a DisplayChannel per site or somehow programmatically register DisplayChannels at startup be a little more kosher?

#82041
Edited, Mar 04, 2014 17:13
Vote:
 

Yes that sounds like a great idea!

The IsActive implementation could then use SiteDefintion.Current to distinguish if it is active or not.

#82042
Mar 04, 2014 17:19
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.