title: Output top level nodes in Umbraco Razor navigation
body: <p>I am struggling with a very simple Umbraco 7 navigation. Basically, I have several "sites" in one solution – or, same site, but for different countries and languages. Their home page are top level nodes, and all the subpages are nested in level 2 and below.</p>
  
  <p>This works fine for the individual sites (outputting the children of the level 1 node).
  However, I want to create a second menu which outputs only the top level nodes, where I can switch between the different sites. This, for some reason, I can't do.</p>
  
  <pre><code>@inherits UmbracoTemplatePage
  @{
    var homePage = CurrentPage.AncestorsOrSelf(1).First();
    var subItems = homePage.Children;
  
    var rootItems = homePage.Siblings;
  }
  
  &lt;ul&gt;
    @foreach (var item in subItems) {
    &lt;li&gt;@item.Name&lt;/li&gt;
    }
  &lt;/ul&gt;
  
  &lt;ul&gt;
    @foreach (var item in rootItems) {
    &lt;li&gt;@item.Name&lt;/li&gt;
    }
  &lt;/ul&gt;
  </code></pre>
  
  <p>It outputs the first list perfectly, but the second list has no output. If I try to output <code>@homePage.Name</code> it does give me an output, so I know the root items are accessible.</p>
  
  <p>Ideally, I want it to output all the root nodes in the second navigation (basically <code>SiblinbsOrSelf()</code>).</p>
  
  <p>What am I doing wrong?</p>