Sharepoint Answers

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds
  Question Asked By: Kiara Horn   on May 07, 2010 In Sharepoint Category.

 
Question Answered By: Alice Chandler   on May 07, 2010

Well, I figured out where the problem  was occuring at but I am not exactly sure why it is occuring in the first place. After doing more research I found  a good work around to the problem, and it actually provides me with a better solution than the origional Minimal Publishing site  Definition.

Heres the work around to the issue...

1. In each of my site definition  configuration sections, in the onet.xml file, I commented out the Modules section and replaced it with a blank Modules node.


<Modules />
<!--<Modules>
<Module Name="Default"/>
</Modules>-->

2. I commented out the modules section at the bottom of the onet.xml I completely commented out the Modules section.

<!-- Standard Default.aspx Root Page -->
<!--
<Modules>
<Module Name="Default" Url="" Path="">
<File Url="default.aspx" NavBarHome="True" Type="Ghostable" />
</Module>
</Modules>
-->

<!-- Default Publishing Page -->
<!--
<Modules>
<Module Name="Default" Url="$Resources:cmscore,List_Pages_UrlName;" Path="">
<File Url="default.aspx" Type="GhostableInLibrary" Level="Draft" >
<Property Name="Title" Value="$Resources:cmscore,IPPT_HomeWelcomePage_Title;" />
<Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/WelcomeLinks.aspx, ~SiteCollection/_catalogs/masterpage/WelcomeLinks.aspx" />
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_welcomepage_name;" />
</File>
</Module>
</Modules>
-->

3. In each of my configuration  nodes I added the ExecuteURL node to send the user to the create page site after a new site has been provisioned.

<ExecuteUrl Url="_layouts/CreatePage.aspx" />

The nice thing about this solution is that once the site has been provisioned the user is taken directly to the Create Page and they can provision there first page. If you are not sure what page layout you might use when creating  a new subsite  then this will iliminate that problem all together.

Below is a complete copy  of my onet.xml file and will hopefully help out anybody help that might have this same issue.


=========================================================
onet.xml
=========================================================

<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/sharepoint/"
xmlns:ows="Microsoft SharePoint"
Revision="1"
ListDir="Lists"
Title="Minimal Publishing Site">
<NavBars>
<NavBar Name="SharePoint Top Navbar" ID="1002"></NavBar>
</NavBars>
<ListTemplates/>
<DocumentTemplates>
<DocumentTemplate Path="STS" Name="" DisplayName="$Resources:core,doctemp_None;" Type="100" Default="FALSE" Description="$Resources:core,doctemp_None_Desc;" />
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Word97;" Type="101" Default="TRUE" Description="$Resources:core,doctemp_Word97_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\word\wdtmpl.doc" TargetName="Forms/template.doc" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Excel97;" Type="103" Description="$Resources:core,doctemp_Excel97_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\xl\xltmpl.xls" TargetName="Forms/template.xls" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Powerpoint97;" Type="104" Description="$Resources:core,doctemp_Powerpoint97_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\ppt\pptmpl.pot" TargetName="Forms/template.pot" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Word;" Type="121" Default="TRUE" Description="$Resources:core,doctemp_Word_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\word\wdtmpl.dotx" TargetName="Forms/template.dotx" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Excel;" Type="122" Description="$Resources:core,doctemp_Excel_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\xl\xltmpl.xlsx" TargetName="Forms/template.xlsx" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Powerpoint;" Type="123" Description="$Resources:core,doctemp_Powerpoint_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\ppt\pptmpl.pptx" TargetName="Forms/template.pptx" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_OneNote;" Type="111" Description="$Resources:core,doctemp_OneNote_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\onenote\template.one" TargetName="Forms/template.one" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_FP;" Type="102" Description="$Resources:core,doctemp_FP_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\fp\fptmpl.htm" TargetName="Forms/template.htm" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_BasicPage;" Type="105" Description="$Resources:core,doctemp_BasicPage_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\blankpgs\_basicpage.htm" TargetName="Forms/_basicpage.htm" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_WebPartPage;" Type="106" Description="$Resources:core,doctemp_WebPartPage_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\smartpgs\_webpartpage.htm" TargetName="Forms/_webpartpage.htm" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate XMLForm="TRUE" Path="STS" DisplayName="$Resources:core,doctemp_BlankForm;" Type="1000" Default="TRUE" Description="$Resources:core,doctemp_BlankForm_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\xmlforms\blank\template.xml" TargetName="Forms/template.xml" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
</DocumentTemplates>
<Configurations>
<Configuration ID="-1" Name="NewWeb" />
<Configuration ID="1" Name="Provisioner" />
<Configuration ID="0" Name="PublishingMinimal"> <!-- mimicking the "Pub Site w/o Workflow" OOTB site template  -->
<Lists/>
<Modules />
<!--<Modules>
<Module Name="Default"/>
</Modules>-->
<ExecuteUrl Url="_layouts/CreatePage.aspx" />
<SiteFeatures>
<Feature ID="02464C6A-9D07-4F30-BA04-E9035CF54392" /> <!-- Feature: ReviewWorkflows -->
<Feature ID="6C09612B-46AF-4B2F-8DFC-59185C962A29" /> <!-- Feature: SignaturesWorkflow -->
<Feature ID="C85E5759-F323-4EFB-B548-443D2216EFB5" /> <!-- Feature: ExpirationWorkflow -->
<Feature ID="C6561405-EA03-40A9-A57F-F25472942A22" /> <!-- Feature: TranslationWorkflow -->
<Feature ID="c8f622c6-d486-49bf-9267-0561bec141d7" /> <!-- Feature: PublishingMinimal -->
<Feature ID="7C637B23-06C4-472d-9A9A-7C175762C5C4" /> <!-- Feature: ViewFormPagesLockdown -->
</SiteFeatures>
<WebFeatures>
<Feature ID="00BFEA71-DE22-43B2-A848-C05709900100" /> <!-- Feature: CustomLists -->
<Feature ID="00BFEA71-E717-4E80-AA17-D0C71B360101" /> <!-- Feature: DocumentLibrary -->
<Feature ID="00BFEA71-52D4-45B3-B544-B1C71B620109" /> <!-- Feature: PictureLibrary -->
<Feature ID="00BFEA71-A83E-497E-9BA0-7A5C597D0107" /> <!-- Feature: TasksList -->
<Feature ID="00BFEA71-4EA5-48D4-A4AD-7EA5C011ABE5" /> <!-- Feature: TeamCollab -->
<Feature ID="00BFEA71-4EA5-48D4-A4AD-305CF7030140" /> <!-- Feature: WorkflowHistoryList -->

<Feature ID="22A9EF51-737B-4ff2-9346-694633FE4416"> <!-- Feature: Publishing -->
<Properties xmlns="http://schemas.microsoft.com/sharepoint/">
<Property Key="ChromeMasterUrl" Value="~SiteCollection/_catalogs/masterpage/PublishingMinimal.master" />
<Property Key="WelcomePageUrl" Value="$Resources:cmscore,List_Pages_UrlName;/default.aspx"/>
<Property Key="PagesListUrl" Value=""/>
<!-- To limit the web  templates available to users, use the following syntax:
LCID-[templatename][#templateindex];LCID-[templatename][#templateindex];...
To include all LCID values, use an asterisk.
For example: *-PublishingMinimal#2;1033-BLANKINTERNET#2 -->
<Property Key="AvailableWebTemplates" Value="*-PublishingMinimal#0;*-PublishingMinimal#2"/>
<!-- To include multiple page layouts, separate them with a colon (:) -->
<Property Key="AvailablePageLayouts" Value="~SiteCollection/_catalogs/masterpage/Minimal.aspx"/>
<Property Key="AlternateCssUrl" Value="" />
<!-- Turning on the SimplePublishing flag means that the Approval workflow  
is not required for every published page. -->
<Property Key="SimplePublishing" Value="true" />
</Properties>
</Feature>

<!-- Feature: NavigationProperties -->
<Feature ID="541F5F57-C847-4e16-B59A-B31E90E6F9EA">
<Properties xmlns="http://schemas.microsoft.com/sharepoint/">
<Property Key="InheritGlobalNavigation" Value="true" />
<Property Key="ShowSiblings" Value="true" />
<Property Key="IncludeSubSites" Value="true" />
<Property Key="IncludePages" Value="false"/>
</Properties>
</Feature>
</WebFeatures>
</Configuration>
<Configuration ID="2" Name="PublishingMinimal"> <!-- mimicking the "Pub Site w/ Workflow" OOTB site template -->
<Lists />
<Modules />
<!--<Modules>
<Module Name="Default"/>
</Modules>-->
<ExecuteUrl Url="_layouts/CreatePage.aspx" />
<SiteFeatures>
<Feature ID="02464C6A-9D07-4F30-BA04-E9035CF54392" /> <!-- Feature: ReviewWorkflows -->
<Feature ID="6C09612B-46AF-4B2F-8DFC-59185C962A29" /> <!-- Feature: SignaturesWorkflow -->
<Feature ID="C85E5759-F323-4EFB-B548-443D2216EFB5" /> <!-- Feature: ExpirationWorkflow -->
<Feature ID="C6561405-EA03-40A9-A57F-F25472942A22" /> <!-- Feature: TranslationWorkflow -->
<Feature ID="c8f622c6-d486-49bf-9267-0561bec141d7" /> <!-- Feature: PublishingMinimal -->
<Feature ID="7C637B23-06C4-472d-9A9A-7C175762C5C4" /> <!-- Feature: ViewFormPagesLockdown -->
</SiteFeatures>
<WebFeatures>
<Feature ID="00BFEA71-DE22-43B2-A848-C05709900100" /> <!-- Feature: CustomLists -->
<Feature ID="00BFEA71-E717-4E80-AA17-D0C71B360101" /> <!-- Feature: DocumentLibrary -->
<Feature ID="00BFEA71-52D4-45B3-B544-B1C71B620109" /> <!-- Feature: PictureLibrary -->
<Feature ID="00BFEA71-A83E-497E-9BA0-7A5C597D0107" /> <!-- Feature: TasksList -->
<Feature ID="00BFEA71-4EA5-48D4-A4AD-7EA5C011ABE5" /> <!-- Feature: TeamCollab -->
<Feature ID="00BFEA71-4EA5-48D4-A4AD-305CF7030140" /> <!-- Feature: WorkflowHistoryList -->

<Feature ID="22A9EF51-737B-4ff2-9346-694633FE4416"> <!-- Feature: Publishing -->
<Properties xmlns="http://schemas.microsoft.com/sharepoint/">
<Property Key="ChromeMasterUrl" Value="~SiteCollection/_catalogs/masterpage/PublishingMinimal.master" />
<Property Key="WelcomePageUrl" Value="$Resources:cmscore,List_Pages_UrlName;/default.aspx"/>
<Property Key="PagesListUrl" Value=""/>
<!-- To limit the web templates available to users, use the following syntax:
LCID-[templatename][#templateindex];LCID-[templatename][#templateindex];...
To include all LCID values, use an asterisk.
For example: *-PublishingMinimal#2;1033-BLANKINTERNET#2 -->
<Property Key="AvailableWebTemplates" Value="*-PublishingMinimal#0;*-PublishingMinimal#2"/>
<!-- To include multiple page layouts, separate them with a colon (:) -->
<Property Key="AvailablePageLayouts" Value="~SiteCollection/_catalogs/masterpage/Minimal.aspx"/>
<Property Key="AlternateCssUrl" Value="" />
<!-- Turning on the SimplePublishing flag means that the Approval workflow
is not required for every published page. -->
<Property Key="SimplePublishing" Value="false" />
</Properties>
</Feature>

<!-- Feature: NavigationProperties -->
<Feature ID="541F5F57-C847-4e16-B59A-B31E90E6F9EA">
<Properties xmlns="http://schemas.microsoft.com/sharepoint/">
<Property Key="InheritGlobalNavigation" Value="true" />
<Property Key="ShowSiblings" Value="true" />
<Property Key="IncludeSubSites" Value="true" />
<Property Key="IncludePages" Value="false"/>
</Properties>
</Feature>
</WebFeatures>
</Configuration>
</Configurations>

<!-- Standard Default.aspx Root Page -->
<!--
<Modules>
<Module Name="Default" Url="" Path="">
<File Url="default.aspx" NavBarHome="True" Type="Ghostable" />
</Module>
</Modules>
-->

<!-- Default Publishing Page -->
<!--
<Modules>
<Module Name="Default" Url="$Resources:cmscore,List_Pages_UrlName;" Path="">
<File Url="default.aspx" Type="GhostableInLibrary" Level="Draft" >
<Property Name="Title" Value="$Resources:cmscore,IPPT_HomeWelcomePage_Title;" />
<Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/WelcomeLinks.aspx, ~SiteCollection/_catalogs/masterpage/WelcomeLinks.aspx" />
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_welcomepage_name;" />
</File>
</Module>
</Modules>
-->

</Project>

Tagged: