Why does my Site defintion automatically create a default.aspx
I need some help.
I've created a publishing site definition and removed any reference to having a default.aspx.
I've set the homeURL to another page that gets created.
However when I create the site the default.aspx is created anyway and is set to be the default home page.
Why is the default.aspx automatically being created? setting the
<
Property
Key="WelcomePageUrl">
doesn't seem to make any difference. why?
Any help woiuld be great
April 22nd, 2010 8:49am
Hi there.
Have you tried the following:
Removed the file from the <Modules> section?
( Something like <Modules><Module><File Url="default.aspx"> )
Make sure that there is no default.aspx file in the file structure in the folder for the Site Template?
Hope this helps.
Regards,
Magnus
My blog: InsomniacGeek.com
Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2010 10:13am
I finally figured out that the order in which i had my WebFeatures was the cause of the problem.
i had the
<!-- Office SharePoint Server Publishing
-->
<
Feature
ID="94C94CA6-B32F-4da9-A9E3-1F3D343D7ECB"
/>
before the other publishing feature ...
<!--
Publishing
-->
<
Feature
ID="22A9EF51-737B-4ff2-9346-694633FE4416">
<
Properties
xmlns="http://schemas.microsoft.com/sharepoint/">
<
Property
Key="WelcomePageUrl"
Value="$Resources:cmscore,List_Pages_UrlName;/Dashboard.aspx"
/>
<
Property
Key="SimplePublishing"
Value="true"
/>
</
Properties>
</
Feature>
and this caused the problem I was having.
So i just switched them over and everything works as it should.
April 23rd, 2010 7:46am