How to set the root collection of items in Exhibit

HowTo Articles Home &raquo;

How to set the root collection of items
If you load Exhibit with items of several types (e.g.,  and  ) and you only want your exhibit to show items of one type, you can set the root collection of the browse engine as follows in HTML:

&lt;div ex:role="collection" ex:itemTypes="Person"&gt;&lt;/div&gt;

For Multiple collections being presented
You need to give different collections different IDs:

&lt;div ex:role="collection" id="typeA-things" ex:itemTypes="typeA"&gt;&lt;/div&gt; &lt;div ex:role="collection" id="typeB-things" ex:itemTypes="typeB"&gt;&lt;/div&gt;

and then link up the views and facets to the right collections

&lt;div ex:role="view" ex:viewClass="Timeline" ex:collectionID="typeA-things" ...&gt;&lt;/div&gt; &lt;div ex:role="view" ex:viewClass="Map" ex:collectionID="typeB-things" ...&gt;&lt;/div&gt;

Facets can be linked the same way.