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.
How to export a schema.xml file for a list from a SharePoint site In sharepoint, we can retrieve the XML schema of any list by using ...
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 Full Breadcrumbs to SharePoint Document Library Inexcusably, SharePoint has no true breadcrumb navigation. In document libraries, n...
Sharepoint Designer 2013, XSLT List View Options ribbon option is not showing I have an ordinary Wiki Page, also tried making an Article...