SaaS CMS has officially launched! Learn more now.

EPiServer Community 'Web site' concept and CurrentSite?


I am having problem understanding the 'web site' concept in EPiServer Community (edit-mode -> 'community'-tab -> 'System settings' -> 'Web sites'). What is the purpose of it and how are they used?

When I try to read the SiteHandler.CurrentSite I get null as a return value even though a web site named 'Default' is available. Why is that?

Jun 16, 2010 14:07

Web sites are just a way of partitioning content, no matter what type of content (blogs, forum topics, whatever). All handlers have method overloads for their CRUD operations which accept a reference to a site. I guess the most common is to partition by content language, but the concept is not limited to that.

The null value returned is equal to the global site, which is the parent node in the configuration.

Jun 17, 2010 12:17
Nov 03, 2011 12:55

Hi can you further explain the concept of global and default site in community

Nov 03, 2011 12:56

The default site is like any site, it is just named "Default". So whether content is tied to the default site or to the global site is dependent on whether they are assigned to the ISite instance named "Default" or not assigned at all (site is null).

Sites have been removed from Community 4.0 and above. Instead Categories can be used to accomplish the same type of partitioning.

Nov 03, 2011 13:27

Thankyou very much for your quick reply, it helped me a lot.

Nov 04, 2011 5:48
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* 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.