Umbraco Razor test to see if on current page
if(@node.Url == @Model.Url)
{
<li>
<a href="@node.Url"><span style="text-decoration:underline">@node.Name</span></a>
</li>
}
else
{
<li>
<a href="@node.Url">@node.Name</a>
</li>
}
{
<li>
<a href="@node.Url"><span style="text-decoration:underline">@node.Name</span></a>
</li>
}
else
{
<li>
<a href="@node.Url">@node.Name</a>
</li>
}
Comments
Post a Comment