Exploring SharePoint Publishing Feature to Configure From Onet.xml

When you create your own publishing site definition then you can configure SharePoint out of the box publishing feature in onet.xml
n
n
nExample: when you open onet.xml of existing publishing site definition then you find publishing feature configured like this:
n
n<Feature ID=”22A9EF51-737B-4ff2-9346-694633FE4416″>
n
n

n<Properties xmlns=”http://schemas.microsoft.com/sharepoint/”>
n
n

n<Property Key=”ChromeMasterUrl” Value=””/>
n
n

n<Property Key=”WelcomePageUrl” Value=”$Resources:cmscore,List_Pages_UrlName;/default.aspx”/>
n
n

n<Property Key=”PagesListUrl” Value=””/>
n
n

n<Property Key=”AvailableWebTemplates” Value=””/>
n
n

n<Property Key=”AvailablePageLayouts” Value=””/>
n
n<Property Key=”SimplePublishing” Value=”true” />
n
n

n</Properties>
n
n

n</Feature>
n
nSo you can obviously copy and paste this OOB configuration to use in your custom site definition,
n
nSo as curiosity I was googling for more options using which we can configure publishing feature , in fact I was trying to explore more properties of this feature and I came to know that there are many more properties available using which you can configure this feature, like : Scheduling of pages , versioning, workflow settings of pages library.
n
nAlternateCssUrl
n
n

nAvailablePageLayouts
n
n

nAvailableWebTemplates
n
n

nChromeMasterUrl
n
n

nEnableApprovalWorkflowOnDocuments
n
n

nEnableApprovalWorkflowOnImages
n
n

nEnableApprovalWorkflowOnPages
n
n

nEnableModerationOnDocuments
n
n

nEnableModerationOnImages
n
n

nEnableModerationOnPages
n
n

nEnableSchedulingOnDocuments
n
n

nEnableSchedulingOnImages
n
n

nEnableSchedulingOnPages
n
n

nMigrationOverride
n
n

nPagesListUrl
n
n

nRequireCheckoutOnDocuments
n
n

nRequireCheckoutOnImages
n
n

nRequireCheckoutOnPages
n
n

nSimplePublishing
n
n

nVersioningOnDocuments
n
n

nVersioningOnImages
n
n

nVersioningOnPages
n
nRefn: Sezai’s blog and this beautiful link

Leave a Comment