.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Hide Link Left Navigation In SharePoint 2013 On Permissions Basis Using jQuery

Posted By:Sagar Pardeshi       Posted Date: December 25, 2015    Points: 200    Category: SharePoint    URL: http://www.dotnetspark.com  

In this article you will learn how to hide link left navigation in SharePoint 2013 on permissions basis using jQuery.
 

Introduction

In this article we will explore how to hide link left navigation in SharePoint 2013 on permissions basis using jQuery. There are two ways to remove link from Quick Launch in SharePoint 2013.

  1. To customize the navigation, just click EDIT LINKS.
edit links
  1. Click EDIT LINKS to customize the top navigation.

    Click EDIT LINKS to customize navigation in the Quick Launch.

    Note: If you don't see the option to edit links, you probably don't have permission to customize the navigation. To customize the navigation, you need to be a site owner or have permission to customize the site.

  2. Click Settings > Site settings. On the Site Settings page, click Navigation and to delete a heading, select the heading you want, and then click Delete. 
settings

  1. Note: These additional navigation settings are available only if the publishing features are enabled for your site collection.

Cause 

To get content of a site to be published on the basis of permissions granted, need to make the changes through CSS or JS added to the master page. But in this case we need to change the master page. The other way is, do through console application include Custom Actions, global JS files "Script Link" using CSOM code without even touching the master page and SharePoint designer.

Example

In a company some of the employees work on contract basis, they don't have any employee ID assigned to them and not able to access the whole information available on the portal.

So here, we are going to show the information (e.g. navigation links) on the basis of permission granted to the user.

test2013

The following is the implemented solution:

Cs.code

cscode

Uploaded style Library script

Uploaded style Library script

Final Output

Final Output


 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend