Skip to content

Simple Pages Shortcodes

Dickson Law edited this page Jul 10, 2020 · 3 revisions

Note: If you are unfamiliar with the Exhibit Builder plugin for Omeka, please refer to its official documentation.

Embedding External Manifest

You can embed external manifests using the mirador shortcode. Use the urls parameter to specify one or more manifest URLs (separated by ; if more than one). The first of these will be shown by default.

[mirador urls="https://iiif.harvardartmuseums.org/manifests/object/299843"] [mirador urls="https://iiif.harvardartmuseums.org/manifests/object/299843;https://media.nga.gov/public/manifests/nga_highlights.json"]

If you wish to customize or resize the viewer's embedding iframe, you can use the optional style parameter to apply CSS styles. Here is an example that centres the viewer within the main page region:

[mirador urls="https://iiif.harvardartmuseums.org/manifests/object/299843" style="width: 80%; margin-left: 10%; height: 600px;"]

Embedding Imported Content

IIIF Toolkit also adds three shortcodes to the Simple Pages plugin for imported content: mirador_file, mirador_items and mirador_collections. This allows you to embed Mirador viewers into custom pages, preloaded with manifests for items or collections.

To use these shortcodes, simply prepend mirador_ in front of the standard file, items or collections shortcode (details here). Here are some examples:

Example 1: Embed a collection's manifest by ID

[mirador_collections id="10"]

Example 2: Embed the manifests of many items by tags

Cheese is an essential element of Western cuisine.

[mirador_items tags=cheese]

If you wish to customize or resize the viewer's embedding iframe, you can use the optional style parameter to apply CSS styles. Here is an example that centres the viewer within the main page region:

[mirador_collections id="15" style="width: 80%; margin-left: 10%; height: 600px;"]