C:\Windows\System32\inetsrv>appcmd list wp
Tag: MOSS
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.
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>
How to add JQuery to SharePoint MasterPage
Scripts Library is the name of the folder I created for storing JQuery
Add it in the Head section of the Page
<script type=”text/javascript”>
if(typeof jQuery==”undefined”){
var jQPath=”/Scripts Library/”;
document.write(“<script src=’”,jQPath,”jquery-1.4.4.min.js’ type=’text/javascript’><\/script>”);
}
</script>
