Skip to content

Instantly share code, notes, and snippets.

@sleslie321
Last active December 23, 2015 13:49
Show Gist options
  • Save sleslie321/6645139 to your computer and use it in GitHub Desktop.
Save sleslie321/6645139 to your computer and use it in GitHub Desktop.
Umbraco 6 Razor Breadcrumb Trail
<ol class="breadcrumb">
<li>You are here:</li>
@foreach (var ancestor in CurrentPage.Ancestors().Where("Visible"))
{
<li><a href="@ancestor.Url" title="@ancestor.Name">@ancestor.Name</a> > </li>
}
<li class="active">@CurrentPage.Name</li>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment