Sharepoint subsites in Site Definition
Hi, I am trying to create a custom site definition that have a search center as a subsite. I have WebTempClient.xml that defines 3 templates: ClientTemplate, ClientSearchCenter, MyPortalSite (that do not have any site definition): < Templates xmlns:ows="Microsoft SharePoint"> < Template Name="MyPortalSite" ID="10074"> < Configuration ID="1" Title="MySiteWithSubsites" Type="0" Hidden="FALSE" ImageUrl="/_layouts/images/logo.png" Description="This is the main sites, that will have subsites" ProvisionAssembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" ProvisionClass="Microsoft.SharePoint.Publishing.PortalProvisioningProvider" ProvisionData="xml\\Portal.xml" RootWebOnly="TRUE" DisplayCategory="MyCategory" VisibilityFeatureDependency="97A2485F-EF4B-401f-9167-FA4FE177C6F6"> </ Configuration> </ Template> < Template Name="Client-SitDef" ID="10051"> < Configuration ID="0" Title="ClientName" Hidden="FALSE" ImageUrl="/_layouts/images/logo.png" Description="A custom site Solutions" DisplayCategory="MyCategory" > </ Configuration> </ Template> < Template Name="SearchSiteDef" ID="10089"> < Configuration ID="0" Title="CustomSearchCenter" Hidden="FALSE" ImageUrl="/_layouts/images/logo.png" Description="Search Center" DisplayCategory="MyCategory" > </ Configuration> </ Template> </ Templates> Here is the Portal.xml: <? xml version="1.0" encoding="utf-8"?> <!-- _lcid="<ID del lenguaje>" _version="<version de MOSS>" _dal="1" --> <!-- _LocalBinding --> < portal xmlns="PortalTemplate.xsd"> < web name="Home" siteDefinition=Client-SitDef#0" displayName="$Resources:spscore,PortalManifest_Home_DisplayName;" description="$Resources:spscore,PortalManifest_Home_Description;"> < webs> < web name="SearchCenter2" siteDefinition=SearchSiteDef#0" displayName="$Resources:spscore,PortalManifest_News_DisplayName;" description="$Resources:spscore,PortalManifest_News_Description;" /> < web name="SearchCenter" siteDefinition="SRCHCEN" displayName="$Resources:spscore,PortalManifest_SearchCenter_DisplayName;" description="$Resources:spscore,PortalManifest_SearchCenter_Description;" /> </webs> </ web> </ portal> MyPortalSite is not a site definition as is the main site I had not been able to create the subsites. When going to site actions there is not subsite. I had read a lot of articles but I am not sure what is wrong. http://sharepointblogs.com.mx/blogs/medinav/archive/2007/06/27/301.aspx http://weblogs.asp.net/paulballard/archive/2007/04/09/creating-a-custom-sharepoint-2007-portal-site-definition-using-the-portalprovisioningprovider-class.aspx http://blogs.claritycon.com/blogs/george_durzi/archive/2009/04/11/extending-sharepoint-site-provisioning-using-site-definition-provisiondata.aspx Can someone provide step by step that really work??? Thank you
November 9th, 2010 10:30am

this works for me <Templates xmlns:ows="Microsoft SharePoint"> <Template Name="ROOTSITELOW" ID="1001"> <Configuration ID="0" Title="Root Site - Low" Hidden="FALSE" ImageUrl="../images/logo_370by165.png" Description="Root Site - Low" RootWebOnly="TRUE" ProvisionAssembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" ProvisionClass="Microsoft.SharePoint.Publishing.PortalProvisioningProvider" ProvisionData="SiteTemplates\SiteCollectionLow\xml\WebManifest.xml"> </Configuration> </Template> <Template Name="SITECOLLECTIONLOW" ID="1002"> <Configuration ID="0" Title="Site Collection - Low" Hidden="TRUE" ImageUrl="../images/logo_370by165.png" Description="Site Collection - Low" RootWebOnly="TRUE"> </Configuration> </Template> <Template Name="SUBSITELOW" ID="1003"> <Configuration ID="0" Title="Sub Site - Low" Hidden="FALSE" ImageUrl="../images/logo_370by165.png" Description="Sub Site - Low" SubWebOnly="True"> </Configuration> </Template> </Templates> <?xml version="1.0" encoding="utf-8"?> <!-- _lcid="1033" _version="12.0.4518" _dal="1" --> <!-- _LocalBinding --> <portal xmlns="PortalTemplate.xsd"> <web name="Home" siteDefinition="SITECOLLECTION" displayName="Site Collection" description="Site Collection"> <!--<webs> <web name="SubSite" siteDefinition="SUBSITE" displayName="SubSite" description="SubSite" /> </webs>--> </web> </portal>
Free Windows Admin Tool Kit Click here and download it now
November 9th, 2010 2:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics