only My site

Wednesday, February 20, 2013

Sharepoint Site definition with sub sites - Site Provisioning


The following are the common approaches to create a site definition with sub sites.
Note : You can also create your own Provisioning Provider by creating a class that inherits from Microsoft.SharePoint.SPWebProvisioningProvider and then overriding the Provision(SPWebProvisioningProperties) method. Internally you would then use the SharePoint object model to add the webs via Web.Add().
 
Custom Provisioning Provider
Build a custom site definition which has child sites

SharePoint List Template IDs and Site Template IDs

Sharepoint 2010 site definition one template to create multiple publishing pages
 
SharePoint Site Definition for Multiple Subsites Creation

Custom Site Definition Sub Site
 
 

Tuesday, February 19, 2013

Read CQWP Custom toolpart property from XSLT

Recentrly I had a requirement to set some custom property in the CQWP and hence I extended the CQWP using Toolpart custom fields. No problem till here and all are server side code and a lot of articles available in Google search. The second part is how to read the custom property is the challenging part.

The following are the steps.

In the web part class add the override ModfyXSLTArgumentList method, which will add the Information as parameter and will be used for XSLT processing. The article describes beautifully and have a look at it Extending content query web-part with custom data

The below link will describe about how to creat custom properties using Toolpart.

Sharepoint custom toolpart properties

Friday, February 1, 2013

VSS Explorer Virtual Rollback

1. Select the file in VSS Explorer.
2. Check out the file using the Check Out command on the SourceSafe menu.
3. On the Tools menu, click Show History to display the History Options dialog box.
4. Click OK to display the History of File dialog box.
5. Select a previous version of the file, then click Get.
    The Get dialog box appears.
6. In the Get dialog box, click OK.
   A message asking whether to replace the checked out file appears.
7. In reponse to the message, click Replace.
8. Click Close to quit the History of File dialog box.
9. Check the file back into VSS Explorer using the Check In command on the SourceSafe menu.