Creating users alerts using PowerShell in SharePoint 2010 23 November 2011 We had a requirement in SharePoint 2010 to automate the creation of alerts based on SPS group membership. After spending some time searching for solution I have managed to write this code in PowerShell to automate the process. I think it worth sharing with […]
Moving Items Between SharePoint Lists 23 November 2011 I came across a scenario where I want to copy large amount of content from one sharepoint list to another. I have done this by creating custom view on lists and copied contents using datasheet view. Please follow these steps to achieve this. Create one list view […]
Show files extension in document library view 15 November 2011 If you have a custom view on document library where you need to show the each file name with extension. This is fairly simple and can be done this way.
Remove “View all site content” link in SharePoint 2007 11 November 2011 Follow these steps to remove “View All Site Content” link form SharePoint 2007 site 1. Open your site master page in SharePoint designer 2. Go to the code and you will see the following <Sharepoint:SPSecurityTrimmedControl runat=”server” PermissionsString=”ViewFormPages”> <div> <SharePoint:SPLinkButton id=”idNavLinkViewAll” runat=”server” NavigateUrl=”~site/_layouts/viewlsts.aspx” Text=”<%$Resources:wss,quiklnch_allcontent%>” […]
Custom master page deployment in SharePoint 2010 20 May 2011 Today I am going to show you that how easily you can deploy your custom master page as a SharePoint feature and it automatically change the site default master page when you activate this feature. For this you need to create new empty SharePoint project. […]
SharePoint feature stapling with site definition 17 May 2011 I have created a site definition, there are many ways to use features with this site definition, You can create a site from this site definition and deploy feature on that newly created site, you can also include features in onet.xml of site definition file and […]
Create sub site programmatically in SharePoint 2010 13 April 2011 Sometime we require creating a sub site programmatically in code. Here is the simple way you can create a sub site programmatically. (SPSite site = new SPSite(http://siteCollectionUrl)) { using (SPWeb web = site.OpenWeb()) {try { web.AllowUnsafeUpdates = true; //Create new web site SPWeb […]
Modify web.config settings on feature activation in SharePoint 13 April 2011 In SharePoint 2010 there is a way to modify web.config settings file. You need to use SPWebConfigModification class which is a part of Microsoft.SharePoint.Administration namespace. This class allows us to register entities dynamically. Adding new settings in web.config I am going to use SPWebModification […]
Embed YouTube video in SharePoint 2010 4 March 2011 Some time you need to add YouTube videos in your SharePoint site pages, it is very simple to implement. I’m going to show step by step how to embed YouTube videos in SharePoint 2010 site, using content editor web part. 1. Go to YouTube video which […]
Using join with CAML in SharePoint development 29 March 2011 You can use the SPQuery.Join property in CAML to querying SharePoint lists data. The each join is represented by a join element (which is child of Joins element). You can use joins to join multiple lists or use multiple joins to the same list. […]