Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.84 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.84 KB

Islandora ThemeKey

Provides ThemeKey theme-switching rules for Islandora objects. This module will change your site's theme based on attributes of Islandora objects. Rules based on the following attributes of Islandora objects are supported:

  • Collection membership (using equals, not equals, contains, and not contains operators).
    • Includes pages of books, and newspaper issues and pages.
    • If an object is a member of multiple collections that are used in ThemeKey rules, the first matching rule in the theme switching chain will be applied.
  • Namespace (using equals, not equals, contains, not contains, regular expression, and not regular expression operators).
  • Content model (using equals, not equals, contains, and not contains operators).

Requirements

Installation

Install as usual, see this for further information.

Usage

To create a theme switching rule,

  1. Go to Admin > Configuration > User Interface > ThemeKey
  2. Select one of the properties starting with 'islandora' in the rule properties list
  3. Select an operator
  4. Enter the PID of the collection or content model, or the namespace
  5. choose the theme you want to be active if the property is true

Use the 'drupal:path' property to switch the theme when viewing a specific Islandora object, such as a collection.

Maintainer

Troubleshooting/issues/feedback

Feedback and use cases for Islandora-specific theme-switching rules are welcome.