<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx</link><description>In the previous post, I promised to try to find time to share additional information concerning the onet.xml and how it can be modified to control other properties of the MOSS site. It took a while, but here we go. Starting from this blog entry, I promise</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Vesa "vesku" Juvonen : Controlling navigation options from the onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#5452745</link><pubDate>Sun, 14 Oct 2007 21:39:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5452745</guid><dc:creator>Vesa "vesku" Juvonen : Controlling navigation options from the onet.xml</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vesku/archive/2007/03/23/controlling-navigation-options-from-the-onet-xml.aspx"&gt;http://blogs.msdn.com/vesku/archive/2007/03/23/controlling-navigation-options-from-the-onet-xml.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#5525833</link><pubDate>Fri, 19 Oct 2007 19:36:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5525833</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;Well done!!!! &amp;nbsp;I've been looking for a way to define available site templates based on the parent template. &amp;nbsp;This did it.&lt;/p&gt;
&lt;p&gt;To control these options through a feature would be even better.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#5960074</link><pubDate>Wed, 07 Nov 2007 17:31:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5960074</guid><dc:creator>Shane Perran</dc:creator><description>&lt;p&gt;Great Post, these are very useful tips to bake into your custom development site definition.&lt;/p&gt;
&lt;p&gt;One thing which is noticably missing for me is AlternateCSS and CustomJSUrl.&lt;/p&gt;
&lt;p&gt;Cheers and great post.&lt;/p&gt;
</description></item><item><title>re: Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#7059444</link><pubDate>Thu, 10 Jan 2008 20:05:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7059444</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;I created my custom publishing site definition with a custom master page. I didn't make a lot of modifications to the onet.xml file as I only wanted to use my custom master page. When I create the site, however, I get this error: The specified ChromeMasterUrl &lt;/p&gt;
&lt;p&gt;'~SiteCollection/_catalogs/masterpage/PublishingMasterPage.master' must be a server-relative url within site collection '/sites/sdfs'. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;What does this mean and how do I fix this?&lt;/p&gt;
&lt;p&gt;Thanks for any help/suggestion.&lt;/p&gt;
</description></item><item><title>re: Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#7059668</link><pubDate>Thu, 10 Jan 2008 20:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7059668</guid><dc:creator>sonofthesun</dc:creator><description>&lt;p&gt;This most likely means, that you do not have the configured master page available in the particular site collection (maybe the feature used for master page deployment is not activated in Site Collection level as it should). &lt;/p&gt;
&lt;p&gt;In your case the master page should be located in the following url - /sites/sdfs/_catalogs/masterpage/PublishingMasterPage.master&lt;/p&gt;
&lt;p&gt;It's good to notice, that you cannot refer to different site collections... &lt;/p&gt;
</description></item><item><title>re: Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#7060446</link><pubDate>Thu, 10 Jan 2008 21:05:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7060446</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;Thanks sonofthesun,&lt;/p&gt;
&lt;p&gt;In the onet.xml, I changed this line: &amp;lt;Property Key=&amp;quot;ChromeMasterUrl&amp;quot; &amp;nbsp; &amp;nbsp;Value=&amp;quot;~SiteCollection/_catalogs/masterpage/MBaseMaster.master&amp;quot;/&amp;gt; as shown in the article above. &lt;/p&gt;
&lt;p&gt;&amp;quot;In your case the master page should be located in the following url - /sites/sdfs/_catalogs/masterpage/PublishingMasterPage.master&amp;quot;&lt;/p&gt;
&lt;p&gt;But how can I upload this master page to the site collection when it has not been created yet. /sites/sdfs/ is the site I am trying to create using the custom sute definition.&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;
</description></item><item><title>re: Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#7088993</link><pubDate>Sat, 12 Jan 2008 15:37:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7088993</guid><dc:creator>sonofthesun</dc:creator><description>&lt;p&gt;&amp;quot;But how can I upload this master page to the site collection when it has not been created yet&amp;quot; &lt;/p&gt;
&lt;p&gt;This can be done using features. Nevertheless it's recommended to deploy the resources used in the sites using features... this feature is then associated to site definition (onet.xml) to the siteFeatures section.&lt;/p&gt;
&lt;p&gt;More information concernign this can be found from the SDK - &lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-gb/library/ms453137.aspx"&gt;http://msdn2.microsoft.com/en-gb/library/ms453137.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#8279290</link><pubDate>Mon, 17 Mar 2008 07:05:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8279290</guid><dc:creator>Hema</dc:creator><description>&lt;p&gt;great post....Thanks a lot.&lt;/p&gt;
&lt;p&gt;But How can we specify system master page through ONET.xml?&lt;/p&gt;
&lt;p&gt;It`s really an urgent requirement from our side.&lt;/p&gt;
&lt;p&gt;Any pointers will be appreciated..&lt;/p&gt;
&lt;p&gt;thanks..&lt;/p&gt;
</description></item><item><title>re: Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#8288707</link><pubDate>Mon, 17 Mar 2008 17:02:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8288707</guid><dc:creator>sonofthesun</dc:creator><description>&lt;p&gt;Hi Hema,&lt;/p&gt;
&lt;p&gt;based on the documentation the attributes on the conficugation element could be used for this. These however do not work as expected, so at least in my cases we have used a custom feature receiver to set the value correctly.&lt;/p&gt;
&lt;p&gt;This is demonstrated more deeply in the solution demo, which was released last week - &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vesku/archive/2008/03/11/dev-days-2008-example-solution-package.aspx"&gt;http://blogs.msdn.com/vesku/archive/2008/03/11/dev-days-2008-example-solution-package.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Basic idea is that in the onet xml, you add following to the webFeatures section.&lt;/p&gt;
&lt;p&gt;&amp;lt;Feature ID=&amp;quot;AD4D99C5-FDC6-4b6d-8810-A5C1DA65A62D&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;Properties&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Property Key=&amp;quot;MasterUrl&amp;quot; Value=&amp;quot;~SiteCollection/_catalogs/masterpage/MBaseMaster.master&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;/Properties&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/Feature&amp;gt;&lt;/p&gt;
&lt;p&gt;Which will call the custom feature receiver (Microsoft.MCS.Intranet.FeatureHandlers.DefaultMasterPageFeatureReceiver - custom example code), which will set the values correctly in provisioning time.&lt;/p&gt;
</description></item><item><title>re: Controlling publishing features from onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#8737326</link><pubDate>Wed, 16 Jul 2008 10:26:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8737326</guid><dc:creator>Farrukh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have mt custom master page installed as a feature.&lt;/p&gt;
&lt;p&gt;I am activating this feature from onet.xml under &amp;quot;&amp;lt;SiteFeatures&amp;gt;&amp;quot;, and under &amp;lt;WebFeatures&amp;gt; i have &lt;/p&gt;
&lt;p&gt;&amp;lt;Feature ID=&amp;quot;22A9EF51-737B-4ff2-9346-694633FE4416&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Properties xmlns=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/sharepoint/&amp;quot;&amp;gt;"&gt;http://schemas.microsoft.com/sharepoint/&amp;quot;&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Property Key=&amp;quot;ChromeMasterUrl&amp;quot; Value=&amp;quot;~SiteCollection/_catalogs/masterpage/BlueBand_Custom.master&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;But my publishing site is aways created with default &amp;quot;BlueBand.master&amp;quot;. However when i see site features my custom master page feature is not activated. Then i am able to activate it and apply it using &amp;quot;Site Settings-&amp;gt;Master Page&amp;quot;.&lt;/p&gt;
&lt;p&gt;Another thing to note that, if i change &amp;quot;ChromeMasterUrl&amp;quot; value to a page that doesn't exists e.g. &amp;quot;BlueBand_Custom2.master&amp;quot;, it doesn't show me any error.&lt;/p&gt;
&lt;p&gt;Any hint, what is wrong with my site definition?&lt;/p&gt;
</description></item><item><title>WCM enabled collaboration sites</title><link>http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx#9388695</link><pubDate>Sun, 01 Feb 2009 23:55:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9388695</guid><dc:creator>Vesa "vesku" Juvonen</dc:creator><description>&lt;p&gt;Usually collaboration sites (team sites) and WCM functionalities (publishing sites) are seen as two totally&lt;/p&gt;
</description></item></channel></rss>