Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Force existing site to use a new site definition

  Asked By: Tami    Date: Oct 31    Category: Sharepoint    Views: 1508

I customized a site definition and create a couple site collection based on it.
Now I have to change the definition a bit,but the existing site collections
don't reflect the changes, is there a easy way to force it.



3 Answers Found

Answer #1    Answered By: Cheyenne Lewis     Answered On: Oct 31

Site definitions are used like blueprints when a new site  collection is
provisioned. Once the site is provisioned there is no way to change  the
site definition  and have existing  sites pick up the changes. One potential
workaround does exist. If the changes  you want to make to the site
definition can be added via a feature then you can write a feature and add
the feature to the existing site definition. Then you can manually activate
the feature in existing sites and get the same effect as re-applying the new
site definition.

Answer #2    Answered By: Liana Alston     Answered On: Oct 31

I believe you are talking about Feature Stapling,right?

Answer #3    Answered By: Daamodar Kolhe     Answered On: Oct 31

Not necessarily. Feature Stapling (Feature site  Template Association) is a
way of adding a feature to an existing  site definition. This is normally
used because you want to add something to one of the built-in site
definitions without breaking the rules by editing them. In this case the
Yang Li wants to add something to an existing custom site definition. You
could use Feature stapling, or just add a reference to the Feature to the
WebFeatures or SiteFeatures element of the site definition. With a custom
site definition  there is no reason not to edit it further, but the change  to
the site definition won't do anything to an existing site. By packaging the
change as a Feature and adding the Feature to the existing site definition
you have the change in a form where it can be activated on existing sites
also. But in a custom site definition you can add the new feature either by
referencing it directly or through Feature Stapling.

Didn't find what you were looking for? Find more on Force existing site to use a new site definition Or get search suggestion and latest updates.