I have created a web template which deploys and creates subsite when used.

Problem : I am trying to get the navigation setting to work as the image below

Required Navigation

The current Onet.XML being used to create the web template is shown below. Which properties need to be set to achieve the above navigation?

enter image description here

This current onet.xml gives the following results.

Current Navigation Settings

1 Answer 1


Use ShowSiblings property :

<Property Key="ShowSiblings" Value="true"/>

If set the TRUE, the outcome is the same options as the “Display the current site, the navigation items below the current site, and the current site's siblings” option in the user interface (second option from the picture below). Note that the IncludeSubSites and IncludePages parameters also affects to outcome.

And InheritCurrentNavigation This controls the inheritance of the current navigation. If set the true, we would get the same results as by selecting the "Display the same navigation items as the parent site" from the user interface (the first option from the picture below)

  <Property Key="InheritCurrentNavigation" Value="true"/>

link to source

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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