<?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>Vesa "vesku" Juvonen : Web Content Management</title><link>http://blogs.msdn.com/vesku/archive/tags/Web+Content+Management/default.aspx</link><description>Tags: Web Content Management</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><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><pubDate>Sun, 14 Oct 2007 21:31:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5452677</guid><dc:creator>sonofthesun</dc:creator><slash:comments>11</slash:comments><comments>http://blogs.msdn.com/vesku/comments/5452677.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vesku/commentrss.aspx?PostID=5452677</wfw:commentRss><description>&lt;p&gt;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 to be more active with writing new stuff to the blog.&lt;/p&gt; &lt;p&gt;This blog entry explains the different options when you configure the standard publishing features in onet.xml. If you are interested concerning the navigation options for the MOSS sites, check the &lt;a href="http://blogs.msdn.com/vesku/archive/2007/03/23/controlling-navigation-options-from-the-onet-xml.aspx"&gt;previous post&lt;/a&gt; with details concerning the different options on configuring the navigation settings within the site.&lt;/p&gt; &lt;h1&gt;&lt;/h1&gt; &lt;h2&gt;Introduction&lt;/h2&gt; &lt;p&gt;If you have created your own site definitions based on the out-of-the-box reference implementations, you have most likely noticed following feature and it's configuration options. &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_4.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="114" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_1.png" width="543" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;The feature ID defined in the onet.xml refers to the Publishing feature stored by default in the folder C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\Publishing. Feature.xml file for the feature looks like following. &lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Feature&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Id&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;22A9EF51-737B-4ff2-9346-694633FE4416&lt;/span&gt;"&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Title&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;Publishing&lt;/span&gt;"&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Description&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;Enable Publishing in a web.&lt;/span&gt;"&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Version&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;12.0.0.0&lt;/span&gt;"&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Scope&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;Web&lt;/span&gt;"&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Hidden&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;TRUE&lt;/span&gt;"&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;DefaultResourceFile&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;core&lt;/span&gt;"&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;ReceiverAssembly&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;Microsoft.SharePoint.Publishing, Version=12.0.0.0, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;/span&gt;"&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;ReceiverClass&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;Microsoft.SharePoint.Publishing.PublishingFeatureHandler&lt;/span&gt;"&lt;br&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;xmlns&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;http://schemas.microsoft.com/sharepoint/&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;ElementManifests&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&lt;br&gt;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;ElementManifests&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;br&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Feature&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt; &lt;p&gt;So when the site is created based on this site definition, the Microsoft.SharePoint.Publishing.PublishingFeatureHandler class is executed, which manipulates the sites settings using object model, based on the properties defined in the onet.xml. Unfortunately the class used in here is dotfuscated, so we can not check all the possibilities using Reflector. I'll cover the known properties and their meaning one-by-one with corresponding images from the UI, so you can easily figure out the different meaning and possibilities of each of the properties.&lt;/p&gt; &lt;h2&gt;Master page setting&lt;/h2&gt;&lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Property&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;ChromeMasterUrl&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt; &lt;br&gt;   &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Value&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;~SiteCollection/_catalogs/masterpage/MBaseMaster.master&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;This is the most commonly used property in the feature receiver. You can use it to change choose the master page to be applied to the newly created site. This property configures the WCM master page to be used for the aspx pages, which are based on some page layout and stored in the pages list of the particular site. In this example we set the MBaseMaster.master master page to be used in this particular site.&lt;/p&gt;
&lt;p&gt;It's important to notice, that this setting is actually the same setting as the Site Master Page in the master page settings page. This does not have any affect for example for the list aspx pages, since those pages use the system master page by default. I'll write separate post concerning the system master page and how it can be changed from the onet.xml easily.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_6.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="338" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_2.png" width="546" border="0"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Welcome Page Url&lt;/h2&gt;&lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Property&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;WelcomePageUrl&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt; &lt;br&gt;    &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Value&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;$Resources:cmscore,List_Pages_UrlName;/default.aspx&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;This property defines the welcome page to be used for the site. Welcome page means the page, where the user is redirected when the site's url is requested. By default when the sites url is requested (for example http://portal/site1/) we redirect the user to the default.aspx page, as in this example. Good example of the welcome page usage, it the Wiki sites. The Wiki site uses the welcome page setting to redirect the user directly to the wiki list stored in the site. &lt;/p&gt;
&lt;p&gt;In user interface, the welcome page can be set using the Welcome page link, which can be found under the Look and feel section in the site settings page.&lt;/p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_16.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="208" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_7.png" width="244" border="0"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;On the welcome page setting page, you can browse to the file you want using standard asset picker. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_18.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="203" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_8.png" width="476" border="0"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Page List Url&lt;/h2&gt;&lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Property&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;PagesListUrl&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Value&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;""&lt;span style="color: rgb(0,0,255)"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;You can use this property to define some other list to be used as the pages library. By default the WCM pages are stored under pages list (&lt;a href="http://portal/site1/pages"&gt;http://portal/site1/pages&lt;/a&gt;), but if you like, you can change the setting by adding the list name in to this property. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Available Web Templates&lt;/h2&gt;&lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Property&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;AvailableWebTemplates&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt; &lt;br&gt;     &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Value&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;*-Microsoft.Intranet.POC.Project#1&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;This setting can be used to filter the site definitions to be shown in the &lt;em&gt;Create Site&lt;/em&gt; page. So using this property, you can limit the different options to be shown to the site hierarchy manipulators. If you have multiple different site definitions used in your portal, the portal managers might have difficulties of understanding the different templates available. It's also important to realize that if there's multiple appications installed on the same MOSS farm, all of the installed site definitions are shown by default in the &lt;em&gt;Create Site&lt;/em&gt; page, regardless of the application used.. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_20.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="174" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_9.png" width="514" border="0"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;So if property is left empty, all of the installed site definitions are available. Multiple templates can be configured to the property using following syntax. In this example there would be two different site definitions available. &lt;/p&gt;&lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Property&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;AvailableWebTemplates&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt; &lt;br&gt;     &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Value&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;*-Microsoft.Intranet.POC.Generic#1;&lt;br&gt;            &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;*-Microsoft.Intranet.POC.News#1;&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From user interface, you can configure the same setting from the &lt;em&gt;Page layouts and site templates&lt;/em&gt; functionality found under the &lt;em&gt;Look &amp;amp; Feel&lt;/em&gt; section of the &lt;em&gt;Site Settings&lt;/em&gt; page.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_10.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="207" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_4.png" width="244" border="0"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Using this functionality, you can manually select the shown site definitions. In this case also, all of the site definitions installed on the MOSS farm are shown, regardless of the particular application.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_12.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="157" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_5.png" width="543" border="0"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Following image is from the &lt;em&gt;Create Site page&lt;/em&gt;, when only one site definition is configured to be shown. In this case, we are under the &lt;em&gt;Projects Catalog&lt;/em&gt; site, and based on the portal design, it's decided that you should only create &lt;em&gt;Project&lt;/em&gt; sites under it. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_14.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="173" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_6.png" width="544" border="0"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Available Page Layouts&lt;/h2&gt;&lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Property&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;AvailablePageLayouts&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt; &lt;br&gt;   &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Value&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;~SiteCollection/_catalogs/masterpage/MGenericBodyOnly.aspx:&lt;br&gt;          ~SiteCollection/_catalogs/masterpage/MGenericImageLeft.aspx:&lt;br&gt;          ~SiteCollection/_catalogs/masterpage/MGenericImageRight.aspx:&lt;br&gt;          ~SiteCollection/_catalogs/masterpage/MGenericImageTop.aspx:&lt;br&gt;          ~SiteCollection/_catalogs/masterpage/MGenericLinks.aspx:&lt;br&gt;          ~SiteCollection/_catalogs/masterpage/MSectionPage.aspx&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;This property is similar as the AvailableWebTemplates, but it applies on the page layout level. Using this property, you can filter the page layouts to be shown in the &lt;em&gt;Create Page&lt;/em&gt; functionality. Since there might be tens of different page layouts created on on portal, it's convenient to filter the options to be shown for the portal editors. If you have multiple page layouts available for the particular site, the different layouts are lsited in the same property, but separated using colon.&lt;/p&gt;
&lt;p&gt;From the user interface, the similar would be configured using the the &lt;em&gt;Page layouts and site templates&lt;/em&gt; functionality found under the &lt;em&gt;Look &amp;amp; Feel&lt;/em&gt; section of the &lt;em&gt;Site Settings&lt;/em&gt; page.&lt;/p&gt;&lt;pre class="code"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_8.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="166" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_3.png" width="551" border="0"&gt;&lt;/a&gt; &lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So when the configuration has been done for the site and you select &lt;em&gt;Create Page&lt;/em&gt; from the &lt;em&gt;Site Actions&lt;/em&gt; menu, we can see only the configured page layouts to be shown. &lt;/p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="218" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb.png" width="551" border="0"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Simple Publishing&lt;/h2&gt;&lt;pre class="code"&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Property&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;SimplePublishing&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt; &lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Value&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;=&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt;true&lt;/span&gt;"&lt;span style="color: rgb(0,0,255)"&gt; /&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;Possible values for this property are True / False. This actually affects on the approval functionality concerning the sites pages list... If property is set as false, the pages list has require approval setting activated and there for all of the changes done to the pages in the sites, have to be approved using separate process. If the property is set as true, the content is instantly published to the portal.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_22.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="132" alt="image" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingpublishingfeaturesfromone.xml_11892/image_thumb_10.png" width="535" border="0"&gt;&lt;/a&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Final words&lt;/h2&gt;
&lt;p&gt;Using these settings and properties, you can fairly easily control the different publishing settings for the particular site. On the upcoming post, I'll declare the detailed steps to write a custom feature receiver to be able to configure also those properties, which are not by default available. 
&lt;p&gt;Hopefully this helps.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5452677" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vesku/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://blogs.msdn.com/vesku/archive/tags/Web+Content+Management/default.aspx">Web Content Management</category></item><item><title>Controlling navigation options from the onet.xml</title><link>http://blogs.msdn.com/vesku/archive/2007/03/23/controlling-navigation-options-from-the-onet-xml.aspx</link><pubDate>Fri, 23 Mar 2007 11:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1935914</guid><dc:creator>sonofthesun</dc:creator><slash:comments>8</slash:comments><comments>http://blogs.msdn.com/vesku/comments/1935914.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vesku/commentrss.aspx?PostID=1935914</wfw:commentRss><description>&lt;p&gt;During past weeks I have been creating few customer POCs to demostrate the excellent WCM features of the MOSS 2007. Since the MOSS publishing features are deployed over the WSS using standard feature framework, we can configure the provisioning of the sites directly from the onet.xml. In this blog entry, I'll declare the concepts behind this possibility and the possible properties, which can be set.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;h2&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/h2&gt; &lt;p&gt;If you have played around the onet.xml files included as out-of-the-box in the MOSS (Publishing template etc.), you have most likely noticed the publishing navigation feature dependencies in the WebFeatures element as in xml block below.&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&amp;lt;WebFeatures&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Feature ID="541F5F57-C847-4e16-B59A-B31E90E6F9EA"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Properties xmlns="&lt;a href="http://schemas.microsoft.com/sharepoint/&amp;quot;"&gt;http://schemas.microsoft.com/sharepoint/"&lt;/a&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property Key="InheritGlobalNavigation" Value="true"/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property Key="ShowSiblings" Value="true"/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property Key="IncludeSubSites" Value="true"/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Properties&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Feature&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;br&gt;&amp;lt;/WebFeatures&amp;gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;So what does this really mean? Basically we are making a binding to publishing navigation feature and configuring it by using properties, which the handler is capable to handle. So the ID given in the onet.xml is a reference to NavigationProperties feature, which can be found from the following folder (by default): &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\NavigationProperties&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;And the feature.xml file from here contains following information:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&amp;lt;Feature Id="541F5F57-C847-4e16-B59A-B31E90E6F9EA"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title="Portal Navigation Properties"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description="Set per-site navigation properties."&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version="12.0.0.0"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Scope="Web"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hidden="TRUE"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReceiverAssembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReceiverClass="Microsoft.SharePoint.Publishing.NavigationFeatureHandler"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns="&lt;a href="http://schemas.microsoft.com/sharepoint/&amp;quot;"&gt;http://schemas.microsoft.com/sharepoint/"&lt;/a&gt;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ElementManifests&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ElementManifest Location="NavigationSiteSettings.xml"/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ElementManifests&amp;gt;&lt;br&gt;&amp;lt;/Feature&amp;gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;As you can see, ReceiveAssebly and ReceiverClass attributes are set and there for when the actions are performed for the feature, "custom code" is executed. As declared already above, the custom code is aware of some parameters which can be set for the feature and based on these parameters, the receiver handler modifies the SPPublishingWeb object's properties.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;h2&gt;&lt;strong&gt;Supported parameters&lt;/strong&gt;&lt;/h2&gt; &lt;p&gt;So what are the parameters supported by the NavigationFeatureHandler class and how do they affect compared to settings done from the user interface. I'll declare the supported parameters one-by-one and compare the settings to modifications done from the user interface (&lt;em&gt;Site Actions -&amp;gt; Site Settings -&amp;gt; Navigation)&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;h3&gt;&lt;b&gt;IncludeInGlobalNavigation, IncludeInCurrentNavigation&lt;/b&gt;&amp;nbsp; &lt;/h3&gt; &lt;p&gt;Controls the IncludeInGlobalNavigation and IncludeInCurrentNavigation properties of the SPPublishingWeb. In user interface this functionality is controlled by using following options.  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image010.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="207" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image0_thumb2.png" width="532" border="0"&gt;&lt;/a&gt;  &lt;p&gt;&amp;nbsp; &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;h3&gt;&lt;b&gt;InheritGlobalNavigation&lt;/b&gt; &lt;/h3&gt; &lt;p&gt;This paremeters controls the global navigation options. If set the true, we will get the same outcome by selecting "&lt;em&gt;Display the same navigation items as the parent site".&lt;/em&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image017.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="85" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image0_thumb5.png" width="514" border="0"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;h3&gt;&lt;b&gt;InheritCurrentNavigation&lt;/b&gt; &lt;/h3&gt; &lt;p&gt;This controls the inheritance of the current navigation. If set the true, we would get the same results as by selecting the "&lt;em&gt;Display the same navigation items as the parent site"&lt;/em&gt; from the user interface (the first option from the picture below)  &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image020.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="109" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image0_thumb6.png" width="515" border="0"&gt;&lt;/a&gt;&amp;nbsp; &lt;p&gt;&amp;nbsp; &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;h3&gt;&lt;b&gt;ShowSiblings&lt;/b&gt; &lt;/h3&gt; &lt;p&gt;If set the TRUE, the outcome is the same options as the &lt;i&gt;“Display the current site, the navigation items below the current site, and the current site's siblings”&lt;/i&gt; option in the user interface (second option from the picture below). Note that the &lt;em&gt;IncludeSubSites&lt;/em&gt; and &lt;em&gt;IncludePages &lt;/em&gt;parameters also affects to outcome.  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image020.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="109" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image0_thumb6.png" width="515" border="0"&gt;&lt;/a&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;h3&gt;&lt;b&gt;&lt;/b&gt;&amp;nbsp;&lt;/h3&gt; &lt;h3&gt;&lt;b&gt;IncludeSubSites&lt;/b&gt; &lt;/h3&gt; &lt;p&gt;This is same as the "&lt;em&gt;Show subsites" &lt;/em&gt;option in the user interface&lt;em&gt;. &lt;/em&gt;Note that if the current navigation has been set to show the same navigation items as the parent site, this option has no meaning.  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image023.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="86" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image0_thumb7.png" width="155" border="0"&gt;&lt;/a&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;h3&gt;&lt;b&gt;&lt;/b&gt;&amp;nbsp;&lt;/h3&gt; &lt;h3&gt;&lt;b&gt;IncludePages&lt;/b&gt; &lt;/h3&gt; &lt;p&gt;This is same as the "&lt;em&gt;Show subsites" &lt;/em&gt;option in the user interface&lt;em&gt;. &lt;/em&gt;Note that if the current navigation has been set to show the same navigation items as the parent site, this option has no meaning.  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image023.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="86" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image0_thumb7.png" width="155" border="0"&gt;&lt;/a&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;h3&gt;&lt;b&gt;&lt;/b&gt;&amp;nbsp;&lt;/h3&gt; &lt;h3&gt;&lt;b&gt;OrderingMethod&lt;/b&gt; &lt;/h3&gt; &lt;p&gt;This option affects to ordering of the navigation items. Note that the final outcome depends also from the &lt;em&gt;AutomaticSortingMathod &lt;/em&gt;and the &lt;em&gt;SortAscending&lt;/em&gt; properties.&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image025.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="93" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image024.png" width="240" border="0"&gt;&lt;/a&gt;  &lt;p&gt;&lt;em&gt;Possible values&lt;/em&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;p&gt;&lt;b&gt;Automatic&lt;/b&gt; - Sort all node types automatically, and group pages after other types.&amp;nbsp; &lt;p&gt;&lt;b&gt;Manual&lt;/b&gt; - Sort all types manually.&amp;nbsp; &lt;p&gt;&lt;b&gt;ManualWithAutomaticPageSorting&lt;/b&gt; - Sort all types except pages manually. If pages are included, sort them automatically and group them after all other types.&amp;nbsp; &lt;p&gt;&lt;b&gt;&lt;/b&gt; &lt;h3&gt;&lt;b&gt;&lt;/b&gt;&amp;nbsp;&lt;/h3&gt; &lt;h3&gt;&lt;b&gt;AutomaticSortingMathod and &lt;/b&gt;&amp;nbsp;&lt;b&gt;SortAscending&lt;/b&gt; &lt;/h3&gt; &lt;p&gt;These controls the sorting of the navigation items. Possible outcome depends on numerous other properties, since for example the AutomaticSortingMathod property has only meaning, if the &lt;em&gt;OrderingMethod&lt;/em&gt; has been set to &lt;em&gt;ManualWithAutomaticPageSorting&lt;/em&gt;.&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;Note. It's not a typo... it's really AutomaticSortingMathod...&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image027.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="90" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image026.png" width="240" border="0"&gt;&lt;/a&gt;  &lt;p&gt;Possible values for the &lt;em&gt;AutomaticSortingMathod&lt;/em&gt; property  &lt;p&gt;&lt;b&gt;CreatedDate&lt;/b&gt; - Sort items by time of creation.&amp;nbsp; &lt;p&gt;&lt;b&gt;LastModifiedDate&lt;/b&gt; - Sort items by time of last modification.&amp;nbsp; &lt;p&gt;&lt;b&gt;Title&lt;/b&gt; - Sort items alphabetically by title.&amp;nbsp; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image029.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="90" src="http://blogs.msdn.com/blogfiles/vesku/WindowsLiveWriter/Controllingnavigationoptionsfromtheo.xml_8659/image028.png" width="240" border="0"&gt;&lt;/a&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;h2&gt;&lt;strong&gt;Final words&lt;/strong&gt;&lt;/h2&gt; &lt;p&gt;As you can see, you can configure all the same options directly from the onet.xml, as you can do from the user interface. Other thing to notice is the possibilities provided by the Feature Receiver concept, which gives flexible way to execute custom code during the site provisioning (or anytime the feature is otherwise activated).&lt;/p&gt; &lt;p&gt;More information concerning the functionalities declared here can be found from the SDK.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms475601.aspx" target="_blank"&gt;Feature.xml schema&lt;/a&gt;  &lt;li&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms474369.aspx" target="_blank"&gt;Onet.xml schema&lt;/a&gt;  &lt;li&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.spfeaturereceiver.aspx"&gt;SPFeatureReceiver class&lt;/a&gt; - All the FeatureReceiver's are inherited from this class&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;PS. I'll try to find some time to write similar article concerning the other possibilities of the WCM features (how to limit the page layouts, how to limit the web templates shown in UI, how to configure master page etc.). Stay tuned... &lt;/p&gt; &lt;p&gt;[&lt;font color="#ff0000"&gt;Update&lt;/font&gt;] - The following post with information concerning the other publishing feature configurations has been released. Check the details from &lt;a href="http://blogs.msdn.com/vesku/archive/2007/10/14/controlling-publishing-features-from-onet-xml.aspx"&gt;here&lt;/a&gt;. &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1935914" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vesku/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://blogs.msdn.com/vesku/archive/tags/Web+Content+Management/default.aspx">Web Content Management</category><category domain="http://blogs.msdn.com/vesku/archive/tags/onet.xml/default.aspx">onet.xml</category></item></channel></rss>