Skip to content

Creating an Exhibit

eob edited this page Dec 17, 2012 · 2 revisions

Datapress adds the Exhibit Injector Javascript library to every page on your site. This is a small piece of code that will help you bootstrap Exhibit entirely from within the BODY element. It also provides helpful methods to help move elements around the page: sidebars for example.

To create an Exhibit:

  1. Choose Full HTML mode when editing your page.
  2. Wrap the Exhibit you want to create in <div class="insert-exhibit"></div>.

The small Datapress Javascript library will look for this insert-exhibit class and boot up Exhibit if found. It will also do several things for you:

  • Move any link elements inside the insert-exhibit elements into the HEAD (useful for data sources).
  • Move any style elements inside the insert-exhibit elements into the HEAD (useful for custom CSS styling).
  • Move any elements with data-remap attributes, explained here.

Clone this wiki locally