Tuesday, February 17, 2015
Thursday, February 12, 2015
Hide the SharePoint Online Ribbon for Anonymous Users
Essentially all public facing SharePoint sites, including those hosted on SharePoint Online or on-prem SharePoint 2013, require a method to hide the suite bar / ribbon for anonymous users. The SharePoint Online oslo master page does an OK job of this while the seattle master page does not even attempt to hide the ribbon. I have been asked quite often how I prefer to hide the ribbon for anonymous users.
The primary method everyone jumps to is the control,<SharePoint:SPSecurityTrimmedControl /> found in theMicrosoft.SharePoint.WebControls namespace, typically registered to the tagSharePoint. As an example.
Show only for Anonymous Users:
Show only for Authenticated Users:
My preferred SharePoint Online and SharePoint 2013 solution for hiding the suite bar / ribbon for anonymous users uses the above theory while also addressing the #s4-ribbonRow requirement. I also find is much cleaner than what is found in the oslo master page.
Simply replace the suite bar / ribbon found in your master page with the following:
Notice that I wrap the entire suite bar / ribbon in my own wrapper. This ID came from Design Manager, but if you have a wrapper around the suite bar / ribbon it will be easier to target specific elements later.
Hope this help.
Sharepoint Designer 2013, XSLT List View Options ribbon option is not showing I have an ordinary Wiki Page, also tried making an Article...
Add Full Breadcrumbs to SharePoint Document Library Inexcusably, SharePoint has no true breadcrumb navigation. In document libraries, n...
OPEN LIST ITEM ATTACHMENTS WITH A CLICK ON THE PAPERCLIP Another requirement of one of my users is to open file attachments directly by...
Add Key Filter Field Sharepoint 2013 I want to add "Title" as a key filter field in metadata navigation settings. Single lin...