http://abhijitjana.net/2010/06/14/how-to-update-controls-which-are-outside-of-updatepanel-during-partial-page-rendering/
Wednesday, 15 May 2013
manage show hide site actions sharepoint sp2010
How to manage visibility ( show/hide ) of Site Actions by user in Sharepoint
If you want to show site actions menu by user rights easy way of to do that using SPSecurityTrimmedControl .
Conditionally renders the contents of the control to the current user only if the current user has permissions defined in the PermissionString
<SharePoint:SPSecurityTrimmedControl runat=”server” PermissionsString=”ManageWeb”>
<div class=”ms-siteaction”>
….
</div>
</SharePoint:SPSecurityTrimmedControl>
Parameters and attributes:
- PermissionString:
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. | |
ApproveItems | Approve a minor version of a list item or document. | |
OpenItems | View the source of documents with server-side file handlers. | |
ViewVersions | View past versions of a list item or document. | |
DeleteVersions | Delete past versions of a list item or document. | |
CancelCheckout | Discard or check in a document which is checked out to another user. | |
ManagePersonalViews | Create, change, and delete personal views of lists. | |
ManageLists | Create and delete lists, add or remove columns in a list, and add or remove public views of a list. | |
ViewFormPages | View forms, views, and application pages, and enumerate lists. | |
Open | Allow users to open a Web site, list, or folder to access items inside that container. | |
ViewPages | View pages in a Web site. | |
AddAndCustomizePages | Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a SharePoint Foundation–compatible editor. | |
ApplyThemeAndBorder | Apply a theme or borders to the entire Web site. | |
ApplyStyleSheets | Apply a style sheet (.css file) to the Web site. | |
ViewUsageData | View reports on Web site usage. | |
CreateSSCSite | Create a Web site using Self-Service Site Creation. | |
ManageSubwebs | Create subsites such as team sites, Meeting Workspace sites, and Document Workspace sites. | |
CreateGroups | Create a group of users that can be used anywhere within the site collection. | |
ManagePermissions | Create and change permission levels on the Web site and assign permissions to users and groups. | |
BrowseDirectories | Enumerate files and folders in a Web site using Microsoft Office SharePoint Designer 2007 and WebDAV interfaces. | |
BrowseUserInfo | View information about users of the Web site. | |
AddDelPrivateWebParts | Add or remove personal Web Parts on a Web Part Page. | |
UpdatePersonalWebParts | Update Web Parts to display personalized information. | |
ManageWeb | Grant the ability to perform all administration tasks for the Web site as well as manage content. Activate, deactivate, or edit properties of Web site scoped Features through the object model or through the user interface (UI). When granted on the root Web site of a site collection, activate, deactivate, or edit properties of site collection scoped Features through the object model. To browse to the Site Collection Features page and activate or deactivate site collection scoped Features through the UI, you must be a site collection administrator. | |
UseClientIntegration | Use features that launch client applications; otherwise, users must work on documents locally and upload changes. | |
UseRemoteAPIs | Use SOAP, WebDAV, or Microsoft Office SharePoint Designer 2007 interfaces to access the Web site. | |
ManageAlerts | Manage alerts for all users of the Web site. | |
CreateAlerts | Create e-mail alerts. | |
EditMyUserInfo | Allows a user to change his or her user information, such as adding a picture. | |
EnumeratePermissions | Enumerate permissions on the Web site, list, folder, document, or list item. | |
FullMask | Has all permissions on the Web site. Not available through the user interface. |
- PermissionContext:
CurrentSite | Apply a permission mask to the current site. | |
CurrentList | Apply a permission mask to the current list. | |
CurrentItem | Apply a permission mask to the current list or document library item. | |
RootSite | Apply a permission mask to the root site of the site collection. | |
CurrentFolder | Apply a permission mask to the current folder. |
- PermissionMode
All | The user must have all of the rights specified in the permission mask to view a link. | |
Any | The user must have only one of the rights specified in the permission mask to view a link. |
Redirect Old MOSS 2007 to sp2010
How to redirect Old MOSS 2007 ( IIS6.0 ) Site to New SharePoint 2010 Site in Migration:
Requirement is,
We have migrated contents from MOSS 2007 (IIS6.0) to
SharePoint 2010 and gradually moved site collections one by one It took a while
to address migration fixes and make them in a good shape for some site
collection.
Meanwhile, We had to redirect Users to migrated SharePoint
2010 site collections when they hit old MOSS 2007 site collection URLs or
access them from bookmarks. Ideally, once migration is completed, we must place
a server redirect in publishing server to send users from old URL to new URL.
But in our case, As we move site collections one by one,
only few site collections needs to be redirected.
Redirection URL scope would be varied from site level
or site collection level or list & document library level.
The solution, we need to below options,
- Create custom httpmodule to redirect httprequest and make entries to web.config.
- Third Party tool ( ISAPI rewrite URL ) available at free of cost from codeplex. URL mapping using regex ( regular expression validator rule ) available. for more details, refer http://rdacollaboration.codeplex.com/
- If Source site is IIS7.0, refer this at free of cost http://www.iis.net/downloads/microsoft/url-rewrite
Subscribe to:
Posts (Atom)