Skip to main content

Posts

Showing posts from August, 2015

Minimum download Strategy(MDS) in SharePoint 2013

The minimum download strategy is a new feature of SharePoint 2013 that reduces the amount of data by downloading only the differences between current page and the requested page. When you enable MDS, you will always load the page from “_layouts/15/start.aspx” followed by a hash(#) and then the relative url of the site you requested. Example: http://<your site url>/_layouts/15/start.aspx#/SitePages/test.aspx If MDS is disabled, the above page URL will be http://sp_site/SitePages/test.aspx Enable MDS through Site Settings You can enable or disable MDS by visiting the Site Features page and activating / deactivating the feature. Go to your site settings page for the site you need to enable or disable the feature. Under Site actions you can find Manage site features. In the site features page, you can see whether the feature is active or not. You can use the Activate/Deactivate button to enable or disable the Minimal download strategy for your site. En

Enable RSS feed in SharePoint 2013

SharePoint 2013 have out of the box support for publishing RSS feed for lists and libraries.  For publishing portals it is important to expose the site contents as RSS feeds. In this walkthrough I am going to explain how you can configure RSS feed for lists, libraries etc. in the SharePoint portal with your own display. For the purpose of this walkthrough, I have created a picture Library named “MyPictures” and added five pictures to this library. The thumbnail view of the picture library is as follows. Now go to the library tab of your list page. You can see the RSS feed icon is disabled, this is because I didn’t enable the RSS feed for my site. Now let us see how we can enable the RSS feed settings. Enable RSS feed for Sites/Site Collection Initially you need to enable the RSS feed for the site collection and the site where you need to expose your contents as RSS feeds. Go to your top level site settings page, if you are in a sub site, make sure you click

Get the login name of the current user in SharePoint 2013

Recently in one of my project, I wanted to retrieve the logged in user’s login name in the format of domain\username. This seems simple and to retrieve the username, I used the below code. SPContext.Current.Web.CurrentUser.LoginName But the output I received contains some extra stuff along with my domain name and username. My domain name is sp1013domain and user name is spsetup, see the output that generated by the above line of code. i:0#.w|sp2013domain\spsetup While searching over web, I found some guys speaking about retrieving the domain\username by splitting the above result by pipe (|) symbol, I was not convinced with that. The extra characters added to the login name is by the claims authentication, so definitely we should be able to retrieve it automated. There is a SPClaimProviderManager class that is responsible for management of various claim providers in the SharePoint farm, and there is a DecodeClaim method, that decodes a claim from an encoded string,

Import profile picture from Active directory to SharePoint 2013 User Profile

Recently I came across a requirement in one of the SharePoint 2013 on premise portal implementation. All the user’s picture is updated in active directory, the question was can we import this picture uploaded to active directory to the Picture property in user profile. The answer is yes and in this post I am explaining the steps for doing it so. So first thing I wanted to do in my development environment to update the photo in the active directory. It can be done by PowerShell script, but I found a nice that can do this task and thankfully there is a free version available. You can find the tool from the below link. http://www.cjwdev.co.uk/Software/ADPhotoEdit/Info.html I downloaded the tool and installed on my development environment. Uploading profile picture with the tool is easy and straight forward, just select the user account and then select an image. For the purpose of this post, I uploaded a sample picture for the account “SPSetup”. The belo