RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

From: Date: Tue, 27 Oct 2009 10:25:52 +0000
Subject: RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-299370@lists.php.net to get a copy of this message
>I think the term drop-menu is bad in this case, as essentially what you are saying is: > >1) user is presented with the basic navigation menu >2) user clicks an item and page navigates somewhere else >3) because of the item user clicked in 2) display some extra menu items > Exactly. >That's not a menu, it's just a navigation bar that changes slightly depending on where >you are in the site... Ok... So the focus should not be on the click events, but on the URL changes. Since it will be based on URL changes and not, on click/hover events, I can rely this navigation system entirely on php. Right? If this is correct, the only think I need then, is to create a condition, to show/hide ul/li items based on: a) the url changes. OR b) the existence or non-existence of child array elements that needs to be verified each time the user navigates to a page. Is this correct? Thanks again, Márcio

« previous php.general (#299370) next »