Hot answers tagged


You can try to validate if the page is in edit mode. But since you'd rather be able to still see everything as an elevated user, perhaps using SPSecurityTrimmedControl is a better choice. <style> /*hide stuff from users*/ #s4-leftpanel,#s4-ribbonrow { display:none !important; } </style> <Sharepoint:SPSecurityTrimmedControl runat="server" ...

Only top voted, non community-wiki answers of a minimum length are eligible