29.11.11

SPSecurityTrimmedControl – Possible Values for PermissionsString

Link to Edit Form

<SharePoint:SPSecurityTrimmedControl runat="server" PermissionsString="EditListItems">

    <div>
      <a onfocus="OnLink(this)" href="JavaScript:var options=SP.UI.$create_DialogOptions();
options.url='{$FORM_EDIT}&amp;ID={$ID}';
options.height = 600; options.width = 800;
void(SP.UI.ModalDialog.showModalDialog(options))">
       <img src="{$HttpVDir}/SiteAssets/edit_16.jpg" style="text-decoration:none;border:0px;width:16px;float:left" alt="Edit"></img>
      </a>
    </div>
    </SharePoint:SPSecurityTrimmedControl>

Link to View Form

 


  <SharePoint:SPSecurityTrimmedControl runat="server" PermissionsString="ViewListItems" Width="16px">

  
      <a onfocus="OnLink(this)" href="JavaScript:var options=SP.UI.$create_DialogOptions();
options.url='{$FORM_DISPLAY}&amp;ID={$ID}&amp;ContentTypeID={$thisNode/@ContentTypeId}';
options.height = 600; options.width = 800;
void(SP.UI.ModalDialog.showModalDialog(options))">
        <img src="{$HttpVDir}/SiteAssets/open.gif"  style="text-decoration:none;border:0px;width:16px;margin-left:2px; margin-top:-3px" alt="View "></img>
      </a>
  
  </SharePoint:SPSecurityTrimmedControl>

 

Link to Version Form

<SharePoint:SPSecurityTrimmedControl runat="server" PermissionsString="ViewVersions">

   
      <a onfocus="OnLink(this)" href="JavaScript:var options=SP.UI.$create_DialogOptions();
options.url='{$HttpVDir}/_layouts/versions.aspx?list={$List}&amp;ID={$ID}&amp;ContentTypeID={$thisNode/@ContentTypeId}';
options.height = 600; options.width = 800;
void(SP.UI.ModalDialog.showModalDialog(options))">

        <img src="{$HttpVDir}/SiteAssets/icon_version.png"  style="text-decoration:none;border:0px;width:16px;margin-left:6px" alt="View "></img>
      </a>

  </SharePoint:SPSecurityTrimmedControl>

 

XSLT Global Parameters

http://msdn.microsoft.com/en-us/library/ff806158.aspx

 

Security PermissionsStrings

image

No comments:

Post a Comment