Is it possible via onet.xml to create the top navigation bar based on the top navigation from site collection?

Only line I see in my onet about the top navigation is this

 <NavBar Name="$Resources:core,category_Top;" Separator="&amp;nbsp;&amp;nbsp;&amp;nbsp;" Body="&lt;a ID='onettopnavbar#LABEL_ID#' href='#URL#' accesskey='J'&gt;#LABEL#&lt;/a&gt;" ID="1002" />

1 Answer 1


EDIT WITH CORRECT ANSWER: I found the correct answer this time. You'll want to make sure the following is in your WebFeatures section:

    <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"/>

The operative element being <Property Key="InheritGlobalNavigation" Value="true"/>. The other properties you can set to true/false as they apply to your situation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.