Embed the viewer on another site ================================ As an iframe ------------ The easiest way to embed the viewer is by using `` Then replace: * ``{BASE_URL}`` by the base URL of Omeka, * ``{MEDIA_QUERY}`` by a list of URL parameters separated by ``&`` (this will define which media will be displayed), * ``{SITE_SLUG}`` by the identifier of an existing Omeka S site, and * ``{TITLE}`` by the text to be displayed in the viewer header. For instance: .. code-block:: html As a web component ------------------ .. warning:: This feature is experimental If iframes cannot be used, the viewer can also be embedded on another website as a `web component `_. Add the following HTML code to your site: .. code-block:: html {TITLE} Then replace: * ``{BASE_URL}`` by the base URL of Omeka, * ``{MEDIA_QUERY}`` by a list of URL parameters separated by ``&`` (this will define which media will be displayed), * ``{SITE_SLUG}`` by the identifier of an existing Omeka S site, and * ``{TITLE}`` by the text to be displayed in the viewer header. For instance: .. code-block:: html All media of item #23 .. note:: The style is inlined for convenience, but you can remove it and use your own styles Optional attributes ~~~~~~~~~~~~~~~~~~~ The ``octopusviewer-viewer`` HTML element also understands the following attributes: ``show-media-selector`` Possible values: ``auto`` (default), ``always``, ``never`` Controls whether the media selector (left panel) should be displayed or not. If ``auto``, the media selector will be displayed only if there is more than one media to display. Other values can be used if you want the media selector to be ``always`` or ``never`` displayed. ``show-media-info`` Possible values: ``always`` (default), ``never`` Controls whether the media info (right panel) should be displayed or not. If ``always``, it will always be displayed. If ``never`` it will never be displayed.