Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/mjordan/islandora_themekey

Provides ThemeKey theme-switching rules for Islandora objects.
https://github.com/mjordan/islandora_themekey

Last synced: 2 months ago
JSON representation

Provides ThemeKey theme-switching rules for Islandora objects.

Lists

README

        

# Islandora ThemeKey

Provides [ThemeKey](https://www.drupal.org/project/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

* [Islandora](https://github.com/Islandora/islandora)
* [ThemeKey](https://dupal.org/project/themekey)

## Installation

Install as usual, see [this](https://drupal.org/documentation/install/modules-themes/modules-7) 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

* [Mark Jordan](https://github.com/mjordan)

## Troubleshooting/issues/feedback

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

* [Islandora Group](https://groups.google.com/forum/?hl=en&fromgroups#!forum/islandora)
* [Islandora Dev Group](https://groups.google.com/forum/?hl=en&fromgroups#!forum/islandora-dev)