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.xmlnnnExample: when you open onet.xml of existing publishing site definition then you find publishing feature configured like this:nn<Feature ID=”22A9EF51-737B-4ff2-9346-694633FE4416″>nnn<Properties xmlns=”http://schemas.microsoft.com/sharepoint/”>nnn<Property Key=”ChromeMasterUrl” Value=””/>nnn<Property Key=”WelcomePageUrl” Value=”$Resources:cmscore,List_Pages_UrlName;/default.aspx”/>nnn<Property Key=”PagesListUrl” Value=””/>nnn<Property Key=”AvailableWebTemplates” Value=””/>nnn<Property Key=”AvailablePageLayouts” Value=””/>nn<Property Key=”SimplePublishing” Value=”true” />nnn</Properties>nnn</Feature>nnSo you can … Read more

Adding Entries in SharePoint Web Configuration File using SPWebConfigModification

nOne of requirement in my project was to edit the web.config of the current SharePoint web application. After some goggling I came to know that SharePoint provides us the powerful API (SPWebConfigModification)  to interact with web.config directly. So I will be explaining some points that how to use this API: I created a feature at … Read more