December 2009
M T W T F S S
« Jul   Aug »
 123456
78910111213
14151617181920
21222324252627
28293031  

11
Dec
09

Hide all the SharePoint goodies when in anonymous mode

When you are in anonymous mode, published, you dont want any of the SharePoint scripts to be running like named.dll. The way to hide it is to wrapped the SharePoint scripts in a security tab. Thus security trimming the scripts and SharePoint overriding CSS classes.

 

<Sharepoint:SPSecurityTrimmedControl PermissionsString=”BrowseDirectories” runat=”server”>
  <!–showing sharepoint scripts –>
  <SharePoint:ScriptLink name=”init.js” runat=”server”/>
  <Sharepoint:CssLink runat=”server”/>
</Sharepoint:SPSecurityTrimmedControl>