Wednesday 15 July 2015

Changing ONET.XML set properties after provisioning in Sharepoint/MOSS 2007? -


I have a custom moss publishing site collection site / site, which has provisioned with the following site definition properties within ONET.XML has gone. / P>

  & lt; Properties xmlns = "http://schemas.microsoft.com/sharepoint/" & gt; & Lt; Property key = "plain publishing" value = "wrong" /> ... & lt; Property key = "Versioning Document" value = "Head" /> & Lt; / Properties & gt;  

Is it possible to access / update these properties via API, for example, there are large / minor versions in all newly created document libraries?

Do something like this:

  Publishing Web Properties ["Versioning Document"] = Variant Settings. Major Endimran;  

= "post-text" Itemprop = "text">

attribute you type in & lt; Property key = "Edition on document" value = "major" /> Look at the , the provisioning engine at the time of site creation.

The only way to change them is by editing onet.xml and you are refusing to do so if this box came out with On SharePoint installation onet.

You can take it in such a way to resolve your requirement

  1. Make a copy of the custom site definition and edit the new custom onet.xml Site Definition .
  2. Create a feature handler that will change the version's settings and staple the feature for site definition.

No comments:

Post a Comment