Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo

LinkingMode help needed......


Go to End
Reply


10 Posts   5064 Views

Avatar
Adamski

Community Member, 14 Posts

16 October 2008 at 3:40am

me again.... heh. Having a great conversation with myself today....

anyway, I sorted it out and thought i'd put my solution up here in case anyone else has the same problems....

	<ul>
		<% control Menu(1) %> 
		<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkOrSection, $LinkingMode">$MenuTitle</a> 
		<% if LinkOrSection = section %> 
		<% if Children %> 
		<div id="leftbox_sub"> 
		<ul> 
		<% control Children %> 
		<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkOrSection, $LinkingMode">$MenuTitle</a>
		<% if LinkOrSection = section %> 
		<% if Children %> 
		<div id="leftbox_sub2"> 
		<ul> 
		<% control Children %> 
		<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkOrSection, $LinkingMode">$MenuTitle</a>
		<% if LinkOrSection = section %> 
		<% if Children %> 
		<div id="leftbox_sub3"> 
		<ul> 
		<% control Children %> 
		<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkOrSection, $LinkingMode">$MenuTitle</a>
		</li> 
		<% end_control %> 
		</ul> 
		</div> 
		<% end_if %> 
		<% end_if %>
		</li> 
		<% end_control %> 
		</ul> 
		</div> 
		<% end_if %> 
		<% end_if %> 
		</li> 
		<% end_control %> 
		</ul> 
		</div> 
		<% end_if %> 
		<% end_if %> 
		</li> 
		<% end_control %> 
	</ul>

Avatar
Stefan

Community Member, 5 Posts

2 December 2008 at 5:49pm

Why don't you do it with just CSS instead? No need for all the complex structure.

Just nest your <ul><li>... <ul><li>... </li></ul>... </li></ul>

I'm not sure if this would work but: Then apply CSS:

ul li { color: black; }
ul li ul li { color: red; }
ul li ul li ul li { color: blue: }

or just apply CSS like:

#leftsubbox li { color: black; }
#leftsubbox2 li { color: red; }

etc

Hope this helps! :)

Go to Top