-
Notifications
You must be signed in to change notification settings - Fork 0
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:
- Choose Full HTML mode when editing your page.
- 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
linkelements inside theinsert-exhibitelements into theHEAD(useful for data sources). - Move any
styleelements inside theinsert-exhibitelements into theHEAD(useful for custom CSS styling). - Move any elements with
data-remapattributes, explained here.