Skip to main content

Posts

SharePoint 2010 put back the "Set Up Groups for this Site" link

The " Set Up Groups for this Site " page has been, for some unknown reason, hidden in SharePoint 2010. The page is still there and it can be accessed here : /_layouts/permsetup.aspx . To make this generally available I created a custom action to add this to the " People and Groups: All Groups " ( /_layouts/groups.aspx ) page, in the Settings dropdown menu: xml version = "1.0" encoding = "utf-8" ?> < Elements xmlns = "http://schemas.microsoft.com/sharepoint/" > < CustomAction Id = "64f25e2b-f9fb-4e37-b848-5949603b03ab" Title = "Set Up Groups for this Site" Description = "Use this page to specify who can access your site. You can create new SharePoint groups or re-use existing SharePoint groups." Location = "Microsoft.SharePoint.GroupsPage" GroupId = "SettingsMenu" Sequence = ...

How to create a custom Workflow Task / SharePoint Server Workflow Task content type using Visual Studio?

If you are designing an Workflow and you want to create custom  Workflow Task or SharePoint Server Workflow Task  using Visual Studio interface then you'll need to make these two content types visible. To make them visible I'm using the following  PowerShell   script: $site = Get - SPSite "http://site/url/here" $web = $site . RootWeb # Workflow Task $contentType = $web . ContentTypes [ "Workflow Task" ] $contentType . Group = "Custom Content Types" $contentType . Hidden = $FALSE $contentType . Update () # SharePoint Server Workflow Task $contentType = $web . ContentTypes [ "SharePoint Server Workflow Task" ] $contentType . Group = "Custom Content Types" $contentType . Hidden = $FALSE $contentType . Update () $site . Dispose () Then when you can add a new Content Type from Visual Studio and you will see the two Content Type in the list. To revert these changes run this PowerShell script: ...

SharePoint 2010 Customizing default application pages

Customizing an SharePoint 2010 Application Page.  In this example I'm customizing the /_layouts/MWS.aspx, the new meeting workspace page.  These steps can be followed for any of Application Page. 1. Create the custom application page and deploy it into the _layouts folder. 2. Create an IHttpModule to redirect all requests that come to MWS.aspx and redirect them to customMWS.aspx: class RedirectModule : IHttpModule { public void Dispose (){ } public void Init ( HttpApplication context ) { // add event handler context . PreRequestHandlerExecute += context_PreRequestHandlerExecute ; } void context_PreRequestHandlerExecute ( object sender , EventArgs e ) { HttpApplication httpApp = sender as HttpApplication ; HttpContext context = httpApp . Context ; string httpUrl = context . Request . RawUrl . ToString (); //compare our URL and redirect it to custom one if ( httpUrl . ToLower (). Contains ( "/_...