Replacing New Page dialogue with the web part page selection screen

Ok so this is a quick post.
An interesting point at the Combined Knowledge Power End User 2010 course today, when you create a new page in a team site it will create the default page and not give you the same options that you get in “more options”.

So we would like to change the default behaviour from the above image to the image below.

This is easily solved by opening the masterpage for the site and finding

<SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreatePage"
	Text="<%$Resources:wss,siteactions_createpage%>"
	Description="<%$Resources:wss,siteactions_createpagedesc%>"
	ImageUrl="/_layouts/images/NewContentPageHH.png"
	MenuGroupId="200"
	Sequence="210"
	UseShortId="true"
	ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Page')) { OpenCreateWebPageDialog('~site/_layouts/createwebpage.aspx') }"
	PermissionsString="AddListItems, EditListItems"
	PermissionMode="All" />

and then replacing this with the following

<SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreatePage"
	Text="<%$Resources:wss,siteactions_createpage%>"
	Description="<%$Resources:wss,siteactions_createpagedesc%>"
	ImageUrl="/_layouts/images/NewContentPageHH.png"
	MenuGroupId="200"
	Sequence="210"
	UseShortId="true"
	ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Page')) { GoToPage('~site/_layouts/spcf.aspx') }"
	PermissionsString="AddListItems, EditListItems"
	PermissionMode="All" />

This will then give you this page when you select new page

Hope this helps someone.
Thanks
Matthew Hughes

About Matthew Hughes

Matthew Hughes has written 74 post in this blog.

I am the CEO of Flucidity Ltd an Office 365 & SharePoint Consultancy based in the UK. We develop intranets, provide training, custom branding and develop SharePoint solutions for companies of varying sizes from 2 users to 20,000+

Leave a Comment

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>