SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When creating a Site Definition in Visual Studio, how do I make sure that the new site created from this definition will display the same global navigation as the parent web in SharePoint 2010?

share|improve this question
up vote 4 down vote accepted

You can control this with the publishing navigation feature. Take a look at the InheritGlobalNavigation key.

<WebFeatures>
 ...
 <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"/>
      </Properties>
 </Feature>
 ...

share|improve this answer
    
is this placed in the onet.xml? and is the id the feature GUID? – Nicholas King Jul 25 '12 at 13:36
    
@NicholasKing Yes and Yes. – Vardhaman Deshpande Feb 18 '13 at 18:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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