Help with dropdown menu [SOLVED]

edited June 2012 in News & Announcements
Hi,

I am creating a dropdown side menu.

The array that is being created looks like this:
Array ( [members/Accommodation] => Array ( [label] => Accommodation (1) ) [members/Accommodation/bb] => Array ( [label] => B & B (0) [parent_id] => Accommodation ) [members/Accommodation/guesthouse] => Array ( [label] => Guesthouse (1) [parent_id] => Accommodation ) [members/Accommodation/selfcatering] => Array ( [label] => Self-Catering (0) [parent_id] => Accommodation ) [members/Accommodation/hotel] => Array ( [label] => Hotel (0) [parent_id] => Accommodation ) [members/Health & Beauty] => Array ( [label] => Health & Beauty (0) ) [members/Outdoors] => Array ( [label] => Outdoors (1) ) [members/Food] => Array ( [label] => Food (0) ) )
You can see there are sub items for Accommodation, yet it does not build them in the list.
The list:
<ul id="accordion" class="accordion"> <li class="first active"><a class="active" href="http://localhost/clarenssaNewFuel/members/Accommodation" title="Accommodation (1)">Accommodation (1)</a>SHOULD HAVE THE SUB ITEMS HERE</li> <li><a href="http://localhost/clarenssaNewFuel/members/Health%20&amp;%20Beauty" title="Health &amp; Beauty (0)">Health &amp; Beauty (0)</a></li> <li><a href="http://localhost/clarenssaNewFuel/members/Outdoors" title="Outdoors (1)">Outdoors (1)</a></li> <li class="last"><a href="http://localhost/clarenssaNewFuel/members/Food" title="Food (0)">Food (0)</a></li> </ul>

Why is that?

Comments

  • edited 11:42PM
    Ok, found the problem, my parent_id should point to 'members/Accommodation', it was pointing to 'Accommodation'
Sign In or Register to comment.