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).
Install as usual, see this for further information.
To create a theme switching rule,
- Go to Admin > Configuration > User Interface > ThemeKey
- Select one of the properties starting with 'islandora' in the rule properties list
- Select an operator
- Enter the PID of the collection or content model, or the namespace
- 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.
Feedback and use cases for Islandora-specific theme-switching rules are welcome.