Please HELP Nav menu with select doc type in drop down menu.
I'm trying to make an nav menu that has the children of the page all listed out with one document type being added to a drop down menu. How can i do something like get element and add the list item to the drop down list in stead of the outer nav list
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">Products <span class="caret"></span></a>
<ul class="dropdown-menu" id="markets"></ul>
@foreach (var item in selection)
{
if (item.IsDocumentType("market"))
{
@*Add to drop down list*@
}
else
{
<a class="nav-link @(item.IsAncestorOrSelf(Model.Content) ? "nav-link--active" : null)" href="@item.Url">@item.Name</a>
}
}
</li>
</ul>
Please HELP Nav menu with select doc type in drop down menu.
I'm trying to make an nav menu that has the children of the page all listed out with one document type being added to a drop down menu. How can i do something like get element and add the list item to the drop down list in stead of the outer nav list
Hi Daniel
Can you show, please, how dropdown looks in Umbraco backend? Is it a property of current node?
/Alex
Thanks for the replay Alex i ended up doing the below> This is not a back office drop down it's for my sites main nav.
Thanks for sharing, Daniel.
is working on a reply...