I'm trying to build a 2-level nav where the 2nd level link is comprised of the URL from the 1st level and an anchor identifier placed by a dataobject.
In short,
<% control Menu(1) %>
<ul class="$URLSegment $LinkOrSection">
<li><a href="$Link" class="$Title" title="$Title">$Title<!--[if IE 7]><!--></a><!--<![endif]-->
<div class="link_sub">
<ul class="sub">
<% if Meals %>
<% control Meals %>
<% control ItemCategories %>
<li><a href="$Link#$Name" title="$Name">$Name</a></li>
<% end_control %>
<% end_control %>
I can pull $Name from ItemCategories, but can't find a way to grab $Link from the Menu(1) controller. Do I need to write a custom method just to pull $Link from the page related to the dataobject?