Technical


SharePoint Permission String Options

Member name Description
EmptyMask Has no permissions on the Web site. Not available through the user interface.
ViewListItems View items in lists, documents in document libraries, and view Web discussion comments.
AddListItems Add items to lists, add documents to document libraries, and add Web discussion comments.
EditListItems Edit items in lists, edit documents in document libraries, edit Web discussion comments in documents, and customize Web Part Pages in document libraries.
DeleteListItems Delete items from a list, documents from a document library, and Web discussion comments in documents.

Quick Launch in SharePoint 2010

Insert the following code in the Code Behind and Voila ! You see SharePoint Driven Quick Launch.

Very useful when you want to move your quick launch to a custom location like right of the page.

<Sharepoint:SPNavigationManager
id=”QuickLaunchNavigationManager”
runat=”server”
QuickLaunchControlId=”QuickLaunchMenu”
ContainedControl=”QuickLaunch”
EnableViewState=”false”
CssClass=”ms-quicklaunch-navmgr”>
<div>
<SharePoint:DelegateControl runat=”server” ControlId=”QuickLaunchDataSource”>
<Template_Controls>
<asp:SiteMapDataSource SiteMapProvider=”SPNavigationProvider” ShowStartingNode=”False” id=”QuickLaunchSiteMap” StartingNodeUrl=”sid:1025″ runat=”server” />
</Template_Controls>
</SharePoint:DelegateControl>
<SharePoint:UIVersionedContent UIVersion=”3″ runat=”server”>
<ContentTemplate>
<SharePoint:AspMenu id=”QuickLaunchMenu” runat=”server” DataSourceId=”QuickLaunchSiteMap” Orientation=”Vertical” StaticDisplayLevels=”2″ ItemWrap=”true” MaximumDynamicDisplayLevels=”0″ StaticSubMenuIndent=”0″ SkipLinkText=”" CssClass=”s4-die”>
<LevelMenuItemStyles>
<asp:menuitemstyle CssClass=”ms-navheader” />
<asp:menuitemstyle CssClass=”ms-navitem” />
</LevelMenuItemStyles>
<LevelSubMenuStyles>
<asp:submenustyle CssClass=”ms-navSubMenu1″ />
<asp:submenustyle CssClass=”ms-navSubMenu2″ />
</LevelSubMenuStyles>
<LevelSelectedStyles>
<asp:menuitemstyle CssClass=”ms-selectednavheader” />
<asp:menuitemstyle CssClass=”ms-selectednav” />
</LevelSelectedStyles>
</SharePoint:AspMenu>
</ContentTemplate>
</SharePoint:UIVersionedContent>
<SharePoint:UIVersionedContent UIVersion=”4″ runat=”server”>
<ContentTemplate>
<SharePoint:AspMenu id=”V4QuickLaunchMenu” runat=”server” EnableViewState=”false” DataSourceId=”QuickLaunchSiteMap” UseSimpleRendering=”true” UseSeparateCss=”false” Orientation=”Vertical” StaticDisplayLevels=”2″ MaximumDynamicDisplayLevels=”0″ SkipLinkText=”" CssClass=”s4-ql” />
</ContentTemplate>
</SharePoint:UIVersionedContent>
</div>
</Sharepoint:SPNavigationManager>

Show or Hide Sharepoint 2010 Ribbon

This code helps you show or hide the ribbon depending on the user permission level.
Change the PermissionsString accordingly. A little googling will help !!

<Sharepoint:SPSecurityTrimmedControl ID=”SPSecurityTrimmedControl” runat=”server” PermissionsString=”AddAndCustomizePages”>
<script type=”text/javascript”>
document.getElementById(“s4-ribbonrow”).style.display = “block”;
</script>
</Sharepoint:SPSecurityTrimmedControl>

<Sharepoint:SPSecurityTrimmedControl ID=”SPSecurityTrimmedControl” runat=”server” PermissionsString=”AddAndCustomizePages”>    <script type=”text/javascript”>        document.getElementById(“s4-ribbonrow”).style.display = “block”;    </script></Sharepoint:SPSecurityTrimmedControl>


Rounded Corners for Web Parts in SharePoint 2010

I spent over a week making this work…email me if you need images. cyberbrutus@gmail.com

You can change Chrome Setting to show or hide the header.

This script finds all the web parts on a particular page and injects CSS that rounds the corners. I placed it in Master Page to avoid pasting code over and over again..


  • Cloud World

  • Custom Search



  • Cyberbrutus
    iDream theme by Templates Next | Powered by WordPress

    Switch to our mobile site