Posts

Showing posts from May, 2014

How to show specific views depending on the current user group in a SharePoint list

There is a way to show and redirect users to specific views depending on their group, by modifying the "AllItems.aspx" page. Firstly, create  library within your site called JqueryLibraries and put there the  jquery-1.9.0.js and the  jquery.SPServices-0.7.2.js libraries. You can download the  jquery.SPServices-0.7.2.js  from here: http://spservices.codeplex.com/releases/view/81401  (unzip the file and use the .js version) You can download the  jquery-1.9.0.js  from here: http://code.google.com/p/google-caja/source/browse/trunk/third_party/precajole/jquery/1.9.0/?r=5248 Create the views where you want the user to be redirected (i.e: Your1View.aspx and Your2View.aspx). Make a security copy of the "AllItems.aspx" page, delete everything in the original page and paste the following: <%@ Page Language="C#" %> <html dir="ltr"> <script language="javascript" src="/ SiteName / JqueryLibraries /jquery-1.9.0.js