17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1443 Views |
-
Getting just 1 child to Display

28 August 2008 at 9:22pm
Hw can i get just the latest child to display?
->Parent
----->C3
----->C2
----->C1So just C3 would be displayed in the Parent?
Thanks
-
Re: Getting just 1 child to Display

28 August 2008 at 9:50pm
<% if First %>
<ul>
<% control Children %>
<li><a href="$Link" title="Go to the $Title.XML page" id="$LinkingMode">$MenuTitle</a></li>
<% end_control %>
</ul>
<% end_if %> -
Re: Getting just 1 child to Display

28 August 2008 at 9:54pm
Thanks had to change it to make it work by moving the if First:
<ul>
<% control Children %>
<% if First %>
<li><a href="$Link" title="Go to the $Title.XML page" id="$LinkingMode">$MenuTitle</a></li>
<% end_if %>
<% end_control %>
</ul> -
Re: Getting just 1 child to Display

28 August 2008 at 10:07pm
I wonder if you could make that even shorter by using <% control Children.First %> ?
| 1443 Views | ||
|
Page:
1
|
Go to Top |



