Quickest way to create Slide Show from your Picture Library in SharePoint

By Namwar Rizvi - Last updated: Sunday, February 5, 2012

Although there are many scripts available on internet which helps you to create slide show or image carousel but none of them gives us the ability to display Title and Description along with the image. I searched quite a lot and then ultimately end up creating my own.

I must clarify that I have not written the entire code myself. What I have done is to use the following already available JavaScript libraries and then assemble them in a way which gives us a quickest way to create image carousel from SharePoint Picture Library:

Enough talk, now lets come to the point:)

Step 1: Plugin Setup

  1. Download the Easy Slider Plugin from http://cssglobe.com/lab/easyslider1.7/easyslider1.7.zip
  2. Unzip the file and Upload easySlider1.7.js to a document library.

Step 2: Note down the List ID

  1. Navigate to your Site Actions -> Site Settings
  2. Under Site Administration, click Site libraries and lists
  3. Click on your Picture Library name, to open it.
  4. Note down the value of parameter List as displayed in Url window of your Internet explorer. It will be something like {26EC0E08-3D8A-4C67-ABF5-909D572B3030}
  5. Add a content editor web part (CEWP) on your target page

Step 3: Set up Content Editor Web Part

  1. On your target page, add a content editor web part (CEWP)
  2. Paste the following code in Source Editor

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<!-- Step 1:  Download easy slider plugin fromhttp://cssglobe.com/lab/easyslider1.7/easyslider1.7.zip  -->
<script type="text/javascript" src="http://TestServer/TestSite/js/easySlider.js"></script>

	<script type="text/javascript">

    function startSlider() {
		//Step 2 Replace {26EC0E08-3D8A-4C67-ABF5-909D572B3030} with the ID of your picture library
        var soapEnv =
            "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \
                <soapenv:Body> \
                     <GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \
                        <listName>{26EC0E08-3D8A-4C67-ABF5-909D572B3030}</listName> \
                         <viewFields> \
                            <ViewFields> \
                               <FieldRef Name='Title' /> \
                           </ViewFields> \
                        </viewFields> \
                    </GetListItems> \
                </soapenv:Body> \
            url:  "//"+window.location.hostname+L_Menu_BaseUrl+"/_vti_bin/lists.asmx",
            type: "POST",
            dataType: "xml",
            data: soapEnv,
            complete: processResult,
            contentType: "text/xml; charset=\"utf-8\""
    function processResult(xData, status) {

		//Uncomment the following line to see the raw xml received from lists.asmx

        $(xData.responseXML).find("z\\:row").each(function() {

			//Get relevant field values
			imageUrl="//"+window.location.hostname + "/" + $(this).attr("ows_FileRef").split(";#")[1];
            var description=getDescription( $(this).attr("ows_MetaInfo"));
			var title=$(this).attr("ows_Title");

			//Construct required HTML Markup
			var liHtml = "<li><h3>" + title + "</h3>" ;
			liHtml+="<IMG border=0 alt='" + title + "'src='" + imageUrl + "' >";
			liHtml+="<p>" + description + "</p>";

			//Add markup as line item in UL tag

		//Start Slider
		//For full options, refer to http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding
			auto: true,
			continuous: true,
			controlsShow : false,
			speed : 800,
			pause : 4000

	function getDescription(metaInfo)
		var description="";
			if(metaParts!=null && metaParts.length>0)
				var i=0;
						var descParts=metaParts[i].split("|");
						if(descParts!=null && descParts.length>1)
				} while (i<metaParts.length && description=="" );
		return description;
<style type="text/css">
#slider{border-bottom:2px solid #ccc; background:#eee; padding:5px;	font-size:x-small;}
#slider h5{font:italic medium Georgia, Times, serif; color:#555; padding:3px; margin-bottom:-10px; background:#c6c6c6;}
#slider h5 span{text-transform:lowercase; padding:5px; font:x-small normal Arial, Helvetica, san-serif;}
#slider div {font-size: x-small; padding:3px;}
#slider ul, #slider li{margin:0; padding:0; list-style:none;}
#slider li{width:310;	height:400px; overflow:hidden; padding:0px;}
#controls2 {padding:3px 0 0 0; text-align:right; width:300;}
#prevBtn, #nextBtn{}
#prevBtn a, #nextBtn a{font-size:x-small; background-color:#ccc; color:#444; padding:2px; text-decoration:none;}
#nextBtn a{}

	<div id="rawXml" ></div>
   	<div id="slider">
		<ul id="imagesUL"/>

Step 4: Update Code

  1. Replace {26EC0E08-3D8A-4C67-ABF5-909D572B3030} by the List ID you got in step 2, above
  2. Click OK, exit edit mode and Enjoy!


  1. This code is a sample code and you may need to change the styles section to match your site’s theme.
  2. Please make sure all your images are of same size, if not, then please adjust the size in line 47 of source code.
  3. This code assumes the size of images as 300×300 pixels, if you need to change it then update the relevant size at line 98.

All credits goes to JQuery and easy slider plugin

Filed in How To, JavaScript, jQuery • Tags: , , , , , , , ,

List of SharePoint Base Permissions with their Hex and Decimal Values

By Namwar Rizvi - Last updated: Sunday, October 23, 2011

Here is the list of all SharePoint base permissions valid for Windows SharePoint Services and SharePoint Foundation both, along with their Hex and decimal values. I hope it will help you to easily reference them in your projects.

Permission Name

Hex Value

Decimal Value





Add, change, or delete HTML pages or Web Part Pages, and edit
the Web site using a Windows SharePoint Services–compatible editor.




Add or remove personal Web Parts on a Web Part Page.




Add items to lists, add documents to document libraries, and add
Web discussion comments.




Apply a style sheet (.css file) to the Web site.




Apply a theme or borders to the entire Web site.




Approve a minor version of a list item or document.




Enumerate files and folders in a Web site using Microsoft Office
SharePoint Designer 2007 and WebDAV interfaces.




View information about users of the Web site.




Discard or check in a document which is checked out to another




Create e-mail alerts.




Create a group of users that can be used anywhere within the
site collection.




Create a Web site using Self-Service Site Creation.

NOTE: CreateSSCSite (0x400000) is a hidden base permission. It  is not
copied if you copy a built-in permission level using the “Copy
Permission Level” button at the bottom of ~/_layouts/editrole.aspx




Delete items from a list, documents from a document library, and
Web discussion comments in documents.




Delete past versions of a list item or document.




Edit items in lists, edit documents in document libraries, edit
Web discussion comments in documents, and customize Web Part Pages in
document libraries.




Allows a user to change his or her user information, such as
adding a picture.




Has no permissions on the Web site. Not available through the
user interface.




Enumerate permissions on the Web site, list, folder, document,
or list item.




Has all permissions on the Web site. Not available through the
user interface.




Manage alerts for all users of the Web site.




Create and delete lists, add or remove columns in a list, and
add or remove public views of a list.




Create and change permission levels on the Web site and assign
permissions to users and groups.




Create, change, and delete personal views of lists.




Create subsites such as team sites, Meeting Workspace sites, and
Document Workspace sites.




Grant the ability to perform all administration tasks for the
Web site as well as manage content. Activate, deactivate, or edit properties
of Web site scoped Features through the object model or through the user
interface (UI). When granted on the root Web site of a site collection,
activate, deactivate, or edit properties of site collection scoped Features
through the object model. To browse to the Site Collection Features
page and activate or deactivate site collection scoped Features through the
UI, you must be a site collection administrator.




Allow users to open a Web site, list, or folder to access items
inside that container.




View the source of documents with server-side file handlers.


s         0x20000000


Update Web Parts to display personalized information.




Use features that launch client applications; otherwise, users
must work on documents locally and upload changes.




Use SOAP, WebDAV, or Microsoft Office SharePoint Designer 2007
interfaces to access the Web site.




View forms, views, and application pages, and enumerate lists.




View items in lists, documents in document libraries, and view
Web discussion comments.




View pages in a Web site.




View reports on Web site usage.




View past versions of a list item or document.


Filed in Concepts, Configuration, Security, SP2010 • Tags: , , , , ,

What is the meaning of “Limited Access” in SharePoint?

By Namwar Rizvi - Last updated: Saturday, October 22, 2011

If you are wondering what is “Limited Access” in SharePoint and how does it affect you then here is the simple explanation:

“Limited Access” in SharePoint means a user has an access to an item of the page specifically but not the whole SharePoint list. Normally, we don’t manage individual item permissions and list items normally inherit their permissions from their parent list but sometimes you may need to share a document or a an item to another user who does not have access to the parent list of that item. In this case, you will break the inheritance for that item/document and give permission specifically to that item/document.

Now, since that document resides under its parent library therefore, user will automatically get the “Limited Access” to the parent list which will in turn allow the user to only access that specific document.

For more information, I will recommend you to read Michael Nemtsev article here

Filed in Administration, Architecture, Concepts, Configuration, Management, Security, SP2010, Tips, Troubleshooting • Tags: , , , , , , ,

Continuous Integration of SharePoint Project by using TFS

By Namwar Rizvi - Last updated: Friday, August 26, 2011

SharePoint projects are some what special in the way they use assemblies and some time it is very difficult to setup your TFS build process for continuous integration. Today, SharePoint Developer Team has published an excellent step-by-step process to properly setup your TFS Build Process for SharePoint Projects. You can read the article here

This article guides about the following:

  1. How to configure the build server to properly compile the SharePoint projects?
  2. List of necessary SharePoint assemblies to make sure compilation succeeds.
  3. How to update Powershell script to add the required files on Build server?
  4. Steps to create build definition.
  5. How to setup build workflow?

I would highly recommend you to read this article before embarking on your next SharePoint project.

Filed in Guidance, Information, Installation, Management, SP2010, TFS, Troubleshooting • Tags: , , , , , ,

Solution for “Access denied by Business Data Connectivity” Error

By Namwar Rizvi - Last updated: Sunday, August 14, 2011

If you are trying to create external data type list and get the error “Access Denied by Business Data Connectivity” then the most common reason for that can be the incorrect permissions for your target External Content Type. To fix the issue, please perform the following steps:

  1. Open your SharePoint 2010 Central Administration Page
  2. Under Application Management, click Manage service applications
  3. Click Business Data Connectivity Service link
  4. List of all external content types will be displayed, select your target external content type by checking it
  5. Click Set Object Permissions on Ribbon
  6. “Set Object Permissions” dialogue box will be displayed, add yourself or any other users, as you want
  7. Check at least Selectable in client permission in permissions list
  8. Click OK to save your changes

Now try to view your external content types list and Bingo! there will be no more “Access denied by Business Data Connectivity” error message!


Filed in Business Data Connectivity, Errors, How To, Solutions, SP2010 • Tags: , , , ,

Solution: The Taxonomy feature (Feature ID “73EF14B1-13A9-416b-A9B5-ECECA2B0604C”) has not been activated

By Namwar Rizvi - Last updated: Thursday, July 21, 2011

If you are trying to add a Managed Metadata type column and getting “The Taxonomy feature (Feature ID “73EF14B1-13A9-416b-A9B5-ECECA2B0604C”) has not been activated” error then here is the quickest way to enable the required feature by using following PowerShell cmdlet:

Enable-SPFeature -id “73EF14B1-13A9-416b-A9B5-ECECA2B0604C” -url “YourSiteUrl”






Filed in Management, PowerShell, Solutions, SP2010, Troubleshooting • Tags: , , ,

SharePoint 2010 Service Pack 1 is out!

By Namwar Rizvi - Last updated: Wednesday, June 29, 2011

Today Microsoft has released the much awaited Service Pack 1 for SharePoint 2010 along with Office 2010.  Along with many bug fixes and minor updates, here is a quick list of new functionality which SP1 will add in your SharePoint environment:


  1. For video display, you will now be able to select a frame as a thumbnail by using “Video Thumbnail Picker”
  2. Users will have better visibility of how their SharePoint storage is being used.
  3. Performance have been enhanced to download large files from SharePoint.
  4. Alerts were not functioning properly in some scenarios, logic has been enhanced.
  5. Before SP1, you could not have some pages rendered in Internet Explorer 9 document mode (instead of Internet Explorer 8). Starting with SP1, a control is available that lets you set individual pages to be rendered in Internet Explorer 9.
  6. URLs to documents in document libraries are very long and include the Source parameter when the URL is copied (e.g., by right-clicking and selecting Copy Shortcut). In SP1, the Source parameter is not included in a copied URL, so the URL is much shorter.

and here are some more useful changes list as mentioned in technet blog here

  1. Improved support for Internet Explorer 9.
  2. Recycle bin: Lets you restore a site collection or a web that was deleted.
  3. Remote Backup Systems (RBS) and shallow copy can decrease downtime and increase efficiency by moving pointers to databases instead of moving databases.
  4. You can see which folders are taking up valuable space with the improved Storage Management feature in site settings.
  5. Support for Microsoft SQL Server 2011.
  6. A more robust Search Host Distribution service that improves error recovery and performance during the search crawl.
  7. Adds backup and restore functionality to recover deleted site collections and webs.


Filed in Administration, Architecture, Configuration, Guidance, Information, Installation, Management, Service Pack, SP2010, Tips • Tags: , , , , , , , ,

List of Special Pages in SharePoint 2010 which do not use any master page

By Namwar Rizvi - Last updated: Sunday, April 10, 2011

There are some special pages in SharePoint 2010 which do not use any master page. You should be aware of these pages to avoid bad user experience while branding your site. Following is the list of those pages:

  1. AccessDenied.aspx : Displays, if user does not have permission to perform respective action.
  2. Confirmation.aspx : Displays, to confirm that your intended operation has been completed successfuly.
  3. Error.aspx : Displays, whenever an error occurs while processing the page.
  4. Reqacc.aspx : Displays, whenever user need to requests the access to certain area of SharePoint site.
  5. SignOut.aspx : Displays, when user signs out.
  6. WebDeleted.aspx : Displays, to confirm that the site has been successfuly deleted.
Filed in Architecture, Concepts, Customization, Guidance, SP2010, Troubleshooting • Tags: , , , , , , , , ,

Quickest way to add Facebook Like Button on your SharePoint page

By Namwar Rizvi - Last updated: Monday, April 4, 2011

Facebook is everywhere. No one can deny the importance of Facebook’s social media capabilities.

If you want to add the Facebook Like button on your SharePoint pages then just paste the following code in a Content Editor Web Part and you will instantly get the Like button for that page. You do not need to hardcode the URL of your page as the given code automatically find it for you.

Just copy paste it and enjoy!

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>

       var url = location.href;
       var url_parts = url.split('?');
       var main_url = url_parts[0];
       var facebookLike="<fb:like href='" + main_url + "' show_faces='true' width='450' font=''></fb:like>"

      // -->

Filed in How To, JavaScript, Social Media, Solutions, Tips, WebPart • Tags: , , , ,

HTML Field Control versus Content Editor Web Part

By Namwar Rizvi - Last updated: Sunday, April 3, 2011

Normally, people feel strong temptation to use Content Editor Web Part (CEWP) whenever they need to display HTML content on a SharePoint page. There is nothing wrong in using CEWP as far as you know when to use it and what are the alternatives. Most of the time CEWP performs as needed but there are some scenarios where we should consider using Field Control (FC)  instead of using CEWP.

Please note that Field Controls are only available in Publishing sites and are designed to display HTML content as per the page layout. Here are some useful tips for when to use CEWP and when to use Field Controls:

Versioning (Use Field Control):

If you want to make sure you have full version history of a publishing page then use field control instead of CEWP because content of FC is stored in the list infrastructure and follow all the versioning capabilities of SharePoint. On the other hand, CEWP content is stored in ASP.NET profile infrastructure along with the URL of the page. It has no connection whatsoever with the versioning capabilities of SharePoint.

Content Targeting (Use CEWP):

If you want to display some content based on the context of the current user then you have no choice except using CEWP.  CEWP is a web part and any web part can be made visible by using Audience targeting. FC has no such mechanism of utilizing Audience targeting.

Want Strict control of User interface and Page Layout? (Use Field Controls):

If you don’t want to allow content editors to change the layout of your pages or to include javascripts then use Field Controls. FC just contains the value and can not include javascript. Only page designers are able to specify how each FC will be rendered on the page. Whereas, CEWP gives more power to the content editor which can lead to change the user interface elements by applying javascript and CSS techniques.

For further information, I will recommend to read this article

Filed in Architecture, Concepts, Guidance, Information, Solutions, Troubleshooting, WebPart • Tags: , , , , , ,