Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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")) {
Any ideas are most welcomed!
is working on a reply...