I'm trying to create a drop-down menu for our new 2.0 Omeka site. I've themed earlier versions of Omeka, but the new page organization scheme (via Exhibit Builder 2.0) has been a pain to style. My biggest problem is that for any pages which go more than 2 levels deep, the sub-pages don't even show up until you're on the parent page.
For example, let's say I have five pages:
-Page 2 (child of Page 1)
--Page 3(child of Page 2, grandchild of Page 1)
If I'm on page 4, the only navigation links that display are for Pages 1, 4 and 5.
Basically, I'm trying to figure out how I can display ALL the links for ALL the pages associated with an exhibit. In the Berlin theme, it does what I want on the Summary page, displaying all the pages in a nice nested list.
This is the code that seems to do what I want:
<?php set_exhibit_pages_for_loop_by_exhibit(); ?>
<?php foreach (loop('exhibit_page') as $exhibitPage): ?>
<?php echo exhibit_builder_page_summary($exhibitPage); ?>
<?php endforeach; ?>
However, if I copy the code that shows all those nice nested links, and paste it into my Show.php page, the links display properly (and can be styled as drop-down menus) but they don't go to the right pages. Each link just lands you on the last page of the exhibit, whatever you click.
This is the code that's currently calling the navigation links in the theme:
<?php echo exhibit_builder_page_nav(); ?>
What can I replace the current code with to give me the fully expanded list of page links so I can do my menus right? I appreciate any and all suggestions, thank you!