In this last episode of getting started with Exhibit and Drupal, we'll embellish the Exhibit we created in part 2 by adding some additional views, exploring the use of lenses and expressions, and adding another facet. Our final Exhibit can be seen here.
Adding Views to your Exhibit
So the first thing we'll do is add several additional views to our Exhibit. The tabular view is nice and provides some great functionality, but Exhibit provides some additional views that are great at visually enhancing the way your data is displayed. We'll start by adding a calendar view. To do this you'll need the following code pasted within your viewPanel:
<div ex:role="view"
ex:viewClass="Calendar"
ex:label="Calendar"
ex:start=".field_date_value"
ex:end=".field_date_value2"
ex:eventLabel=".title"
ex:formats="date { mode: short;
show: date-time;
template: 'MM/dd/yyyy' }
item { title: expression(.title) }"></div>