Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Hide "Site Contents" for users

$
0
0

Hi

My first time editing the code in SharePoint

I have SharePoint 2013 with Community site template

I want to hide "Site Contents" (/_layouts/15/viewlsts.aspx) Link from "Quick Launch" (left menu) and "Site Actions" (gear) menu

I managed to Hide it from Quick Launch by changeling PermissionsString="ViewFormPages" to PermissionsString="ManageWeb" in the seattle.html file:

<div class="ms-core-listMenu-verticalBox"><!--SPM:<SharePoint:ClusteredSPLinkButton
                                runat="server"
								id="idNavLinkViewAll"
                                PermissionsString="ManageWeb"
                                NavigateUrl="~site/_layouts/15/viewlsts.aspx"
                                Text="&#60;%$Resources:wss,AllSiteContentMore%&#62;"
                                accesskey="&#60;%$Resources:wss,quiklnch_allcontent_AK%&#62;"
                                CssClass="ms-core-listMenu-item ms-core-listMenu-heading"/>--><!--PS: Start of READ-ONLY PREVIEW (do not modify)--><a id="ctl00_idNavLinkViewAll" accesskey="3" class="ms-core-listMenu-item ms-core-listMenu-heading" href="#"><span class="ms-splinkbutton-text">All Site Content</span></a><!--PE: End of READ-ONLY PREVIEW--></div>

I didn't find where to do it for the Site Actions menu?



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>