View Full Version : ddlevelsmenu: Using other strings for rel-attributes and ids possible?

11-12-2013, 04:52 PM
1) Script Title:ddlevelsmenu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/

3) Describe problem:

ddlevelsmenu usually uses a menu structure like this:

<ul id="navlist" class="clearfix">

<li><a href="index.html" >menu1</a></li>
<li><a href="#" rel="submenu1" >menu2</a>
<ul id="submenu1" class="ddsubmenustyle">
<li><a href="#">menu2-1</a></li>
<li><a href="#">menu2-2</a></li>
<li><a href="#">menu2-3</a></li>
<li><a href="#" >menu3</a></li>
<li><a href="#" rel="submenu2" >menu4</a>
<ul id="submenu2" class="ddsubmenustyle">
<li><a href="#">menu4-1</a></li>
<li><a href="#">menu4-2</a></li>
<li><a href="#">menu4-3</a></li>
<li><a href="#" >menu5</a></li>


The problem is about the rel-attributes and the id's corresponding ul's. It seem's to be impossible to generate submenu1, submenu2 and so on.
But it might be possible to generate a structure like this:

Item 1: without children no rel
Item 2: with children rel="submenu2"
Item 3: without children no rel
Item 4: with children rel="submenu4"
Item 5: with children rel="submenu5"

Unforunately for ddlevelsmenu the submenu1, submenu2, ... seems to be mandatory. Is there a way to change this. Maybe every unique rel works with every corresponding (same string) id?

This would be great for me!

I really appreciate your help.