I've been asked if I can create some dropdown menus from our primary nav. I know how to do this with regular unordered lists. However, I don't know how to do this using the php array for the primary nav that Omeka uses.
Here's the code I'm using now:
<?php echo public_nav(array('Explore Art' => uri('explore'), 'Share Lessons' => uri('overview'), 'Resources' => uri('glossary'), 'About' => uri('about'))); ?>
And here's an example from the development site of what the tabbed primary nav looks like: http://africanamericanart.si.edu/explore
I'm a php newbie so as simple an explanation with an example would be appreciated. Thx.
Related: can you tell me where in Omeka the public_nav function is defined?
public_nav function is defined in
public_nav wraps each link in its array with a list item (
li) and a link tag. So, it ends up making a regular unordered list, with each list item derived from the array in
public_nav. See the example on the public_nav Codex page for some details.