Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Brian 77 posts 251 karma points
    Mar 21, 2016 @ 16:25
    Brian
    0

    Issue with Partial not showing on sub pages

    We're in the final throws of setting up a new website and have a number of partials used in the navigation. All of the partials are working on the home page master but the following partial is not showing at all on the sub page master.

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePages @inherits UmbracoViewPage


    • @{ foreach (IPublishedContent HolidayTopLevelDestination in Model.Descendants("HolidayTopLevelDestination")) {

                  if (HolidayTopLevelDestination.Descendants("HolidayLocations").Any())
                  { 
                  <ul class="col-sm-3">
                  <li><a href="@(HolidayTopLevelDestination.Url)"><h3>@(HolidayTopLevelDestination.Name)</h3></a></li>
                          @foreach (dynamic HolidayLocations in HolidayTopLevelDestination.Descendants("HolidayLocations"))
                          {
                              <li><a href="@(HolidayLocations.Url)">@(HolidayLocations.Name)</a></li>
                          }
                  </ul>
                  }
      
              }
      
          }
      </ul>
      

  • Any ideas are most welcomed!

Copy Link
Please Sign in or register to post replies

Write your reply to:

Draft