Exhibit Builder in Trunk

16 views
Skip to first unread message

Sam Eberspacher

unread,
Oct 26, 2010, 3:00:04 PM10/26/10
to omek...@googlegroups.com
Hello all,

I'm working on an Exhibit Theme for some stuff we've got going on at the Scholars' Lab. We're currently working from trunk so we can get access to the modified Exhibit Builder theme structure, but I had a bunch of trouble getting EB to pull from the new directory structure. I did a bit of exploring and found that EB is still pulling exhibit themes from "/plugins/ExhibitBuilder/views/shared/exhibit_themes". Is there any timetable on moving EB to the new directory structure discussed on the listserv earlier?

Also just to confirm, the new directory structure will be something like this, correct?
/themes
/theme_name
/plugin_name
/plugin_theme_stuff
/plugin_theme_stuff

Thanks,
Sam Eberspacher
Economics/Computer Science
University of Virginia 2012
Cell: 571/334-9883

Jeremy Boggs

unread,
Oct 27, 2010, 8:49:45 AM10/27/10
to omek...@googlegroups.com
Hi Sam,

Yes, the current trunk for Exhibit Builder should pull from the public
themes. You'll also need to run this on trunk of Omeka, too. I just
tested this, and its working as expected. Can you confirm which
versions you're running? And can you tell us where in the code
ExhibitBuilder still seems to pull from the exhibit_themes directory?
We haven't removed the exhibit_themes directory from the trunk yet,
but I'll do that soon.

And to confirm the directory structure, it should be, for
ExhibitBuilder:

/themes
/theme-name
/exhibit-builder
/exhibits
browse.php
item.php
show.php
summary.php
tags.php

More generically, it would be:

/themes
/theme-name
/plugin-name
/plugin-view-for-controller

Best,
Jeremy

> --
> You received this message because you are subscribed to the Google
> Groups "Omeka Dev" group.
> To post to this group, send email to omek...@googlegroups.com.
> To unsubscribe from this group, send email to omeka-dev+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/omeka-dev?hl=en
> .
>

ocymum basilicum

unread,
Oct 27, 2010, 9:13:47 AM10/27/10
to omek...@googlegroups.com
Trunk on both sides (Omeka and ExhibitBuilder), Jeremy.

---
A. Soroka
Digital Research and Scholarship R & D
the University of Virginia Library

Sam Eberspacher

unread,
Oct 28, 2010, 4:11:09 PM10/28/10
to omek...@googlegroups.com
Got it working. Turned out it I misread the new naming convention (I was using underscores instead of dashes)

Sam Eberspacher
Economics/Computer Science
University of Virginia 2012
Cell: 571/334-9883



Sam Eberspacher

unread,
Nov 1, 2010, 5:23:29 PM11/1/10
to omek...@googlegroups.com
Hello again,

I have a new question about the ExhibitBuilder for everyone! After I got the new ExhibitBuilder to run the code correctly I started on an Exhibit specific theme. What I'm working on is something very similar to the way Exhibits used to be written (self-contained units with their own header/footer, etc). The way that used to be done was by calling the "exhibit_builder_exhibit_head" function to get the header file in /plugins/EB/views/shared/exhibit_themes/theme_name/. However, so far with the new system I haven't been able to get the same type of functionality. When I call "head" I get the theme header stored in /themes/theme_name/common/, and when I call "exhibit_builder_exhibit_head" it still tries to pull from the old directory structure. What I would like is to be able to call a function (be it head, or exhibit_builder_exhibit_head) that would pull the exhibit header (in /themes/theme_name/exhibit-builder/exhibits/header.php) instead of the theme header. I am currently pulling the exhibit header as a partial, but that's effectively what the other functions do. Is there a way to do this with the new theme structure?

Also, for reference, this is why exhibit_builder_exhibit_head is pulling from the old directory structure
In plugin.php
define('EXHIBIT_PLUGIN_DIR', dirname(__FILE__));
define('EXHIBIT_THEMES_DIR_NAME', 'exhibit_themes');
define('EXHIBIT_THEMES_DIR', EXHIBIT_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . 'shared' . DIRECTORY_SEPARATOR . EXHIBIT_THEMES_DIR_NAME);

In helpers/ExhibitFunctions.php
function exhibit_builder_exhibit_head()
{
    $exhibit = exhibit_builder_get_current_exhibit();
    if ($exhibit->theme) {
        common('header',compact('exhibit'), EXHIBIT_THEMES_DIR_NAME.DIRECTORY_SEPARATOR.$exhibit->theme);
    } else {
        head(compact('exhibit'));
    }
}

Sam Eberspacher
Economics/Computer Science
University of Virginia 2012
Cell: 571/334-9883



Reply all
Reply to author
Forward
0 new messages