I'm working on a sharepoint 2010 publishing site that has many subsites. I've set up a custom master page, and several custom page layouts.
I've discovered how to set the default page layout used for newly created pages in a subsite (found at /_Layouts/AreaTemplateSettings.aspx), but I can't seem to figure out how to specify the default page layout used to create ~/Pages/default.aspx when I create a new subsite.
Right now it selects WelcomeLinks.aspx, and that's not what I want.
Is this only available if I deploy custom master pages / layouts via code, and if so, does anyone have any good examples?
Thanks.
Best Answer
The Page Layout of a newly created subsite is determined by the site definition. For example, if you create a subsite using the Publishing Site with Workflow template, then that site is created using Configuration ID="2" from 14\TEMPLATE\SiteTemplates\BLANKINTERNET\XML\onet.xml. Within that configuration is a module section that points to SubWebWelcome:
As you can see, SubWebWelcome provisions the default.aspx using the WelcomeLinks Page Layout.
If you want a different Page Layout for the default page, you have two options: