Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to add an additional configuration to the out of the box Enterprise Wiki site definition. Should I adjust the OOB site definition itself, or is there some way to staple it to the definition without touching the OOB files?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You should not change the OOB files for several reasons:

  • Changing a deployed Site Defintion isn't supported
  • Changing OOB files in general isn't supported and your changes may be overwritten by any SP/KB/Hotfix

If you want to make changes to what happens when a user creates an Enterprise wiki site, the you should make a feature which makes the changes needed and then use Feature Stapling to add that feature to Enterprise Wiki (ENTERWIKI#0).

If you want to create a completely new Configuration, then you need to develop your own site definition where you copy everything you want from the Enterprise wiki onet.xml. See How to: Create a Custom Site Definition and Configuration

share|improve this answer
    
Can I staple onet.xml additions to the ENTERWIKI#0 site definition? Or am I stuck with programming the changes into an event receiver? My preference is to staple a configuration section to the ENTERWIKI#0 site definition's onet.xml if something like that is possible. –  Bruce Jun 5 '12 at 16:27
    
In a feature you can do almost anything which you can do in onet.xml, but if it's a complete new configuration then see my additions to the answer –  Per Jakobsen Jun 5 '12 at 16:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.