I'm trying to create navigation in CakePHP that uses this method with
CSS drop-downs:

http://www.webmonkey.com/tutorial/Add_CSS_Drop-Down_Menus

So, of course I want to leverage nestedList(), but since I have two
"levels" of nested lists, I'm getting unexpected results.

Here's what I want:

Main List Item 1
>>Secondary List Item 1
>>Secondary List Item 2
>>>>Tertiary List Item 1
Main List Item 2

Here's what I have set up at the moment:

$nav = $html->nestedList(
        array(
        $html->link('Main List Item 1', '#') => array(
                $html->link('Secondary List Item 1', '/url/'),
                array($html->link('Secondary List Item 2', '/url/') =>
                    array($html->link('Tertiary List Item 1', '/
url'))),
                $html->link('Secondary List Item 2', '/url/'),
                $html->link('Secondary List Item 3', '/visits/'),
        ),
        $html->link('Main List Item 2', '#'),
        $html->link('Main List Item 3', '#'))
This gets me close, but the result is this:

Main List Item 1
>>Secondary List Item 1
>>1
>>>>Secondary List Item 2 (winds up in the tertiary list)
>>>>Tertiary List Item 1
>>Secondary List Item 2
>>Secondary List Item 3
Main List Item 2
Main List Item 3

How can I set this up using nestedList so that the list is formatted
without the "1" above and with the secondary list item 2 in the proper
place? Or am I approaching this from the wrong angle altogether?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to