customize site collection when is created
Scenario:
Create a Farm level feature which changes the builtin site templates so whenever a new site collection is created e.g team site Its completely different from our default built-in site def.
is it better to alter built-in site definitions?? I mean manipulating definitions in 14 hive.
There is no event for "site collection created" is there a way to alter the site when it's created???
many thanks
Aqib
May 14th, 2011 7:10pm
In '07, the SPWebEventReceiver (MSDN documentation
here) doesn't have a method when a web is created. You could do a Feature Staple, which basically means that, depending on the type of site you pick, it'll fire off other features to be created (link
here).
Feature Stapling means you're not messing with the underlying site definition, so it's a much more scaleable way to do what you're looking for.
- M- Michael Mukalian - 2010 MS MVP SharePoint Services - MCTS: MOSS 2007 Configuration - http://www.mukalian.com/blog
Free Windows Admin Tool Kit Click here and download it now
May 15th, 2011 9:53am
Thanks mate sounds reasonable...
Will try.
Thanks again.
May 15th, 2011 5:28pm