November Happy Hour will be moved to Thursday December 5th.

EPiServer Community 'Web site' concept and CurrentSite?

Vote:
 

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?

#40727
Jun 16, 2010 14:07
Vote:
 

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.

#40795
Jun 17, 2010 12:17
Vote:
 
#54798
Nov 03, 2011 12:55
Vote:
 

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

#54799
Nov 03, 2011 12:56
Vote:
 

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.

#54801
Nov 03, 2011 13:27
Vote:
 

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

#54819
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.