public override void FeatureActivated(SPFeatureReceiverProperties properties)
SPWeb web = (SPWeb)properties.Feature.Parent;
web.Webs.Add("CommunityBlog", "Community Blog", "A blog for community sites", 1033, "BLOG#0", false, false);
//write to logs
//Free up resources
I have the code above in a feature receiver which is activated from my site definition. I don't receive any errors but when I create a new site collection based on my definition, no blog subsite is created. Is there a way to get the SPSite object without using
SPContext, since it looks like it can't be used in a receiver?Any help would be appreciated.
View Complete Post