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: 27 days ago
JSON representation
Provides ThemeKey theme-switching rules for Islandora objects.
- Host: GitHub
- URL: https://github.com/mjordan/islandora_themekey
- Owner: mjordan
- License: gpl-3.0
- Created: 2015-03-31T03:43:59.000Z (over 9 years ago)
- Default Branch: 7.x
- Last Pushed: 2015-11-05T06:23:34.000Z (about 9 years ago)
- Last Synced: 2024-10-08T08:31:32.917Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 219 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- islandora_awesome - 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. (The Islandora 7.x-1.x List / Utility Modules)
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 trueUse 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)