I can't find any API (and certainly couldn't write one) that displays (on our public Omeka site) a list of exhibits we've made. Must this information be hard-coded with HTML only after the fact?
I can't find any API (and certainly couldn't write one) that displays (on our public Omeka site) a list of exhibits we've made. Must this information be hard-coded with HTML only after the fact?
Have you tried using the
exhibit_builder_get_exhibits() function to get a list of Exhibit objects?
You might also want to look at models/Exhibit
.php to see what data you can pull out of those exhibit objects.
Here's an example:
$exhibits = exhibit_builder_get_exhibits();
if (!empty($exhibits)) {
echo '<ul>';
foreach($exhibits as $exhibit) {
echo '<li>' . html_escape($exhibit->title) . '</li>';
}
echo '</ul>';
}
Let me know if this works.