Today I will talk about a little trick for anonymous access on SharePoint 2013.
Often the customer tells you “I want a SharePoint but I do not want visitors to see the ribbon, there is no use for them!
Although I’m not entirely agree, sometimes I hide the ribbon for anonymous.
But then, if it looks good at first, there is a problem that appears when the anonymous visitor open a list item (eg an advertisement).
To fix this little display problem, specify the ribbon to be minimized, which can be done in the following way.
« _ribbon.buildMinimized = true; »
The full code of the control is:
For information I add this user control via a delegate control as follows
<Control Id="PromotedActions" Sequence="1" ControlSrc="~/_ControlTemplates/15/MyProject/HideTopRibbon.ascx" />
Hope this helps.