Compare commits
No commits in common. 'main' and 'unpublished_conditions' have entirely different histories.
main
...
unpublishe
3 changed files with 9 additions and 63 deletions
@ -1,13 +1,9 @@ |
|||||||
# "IslandLives" Roblib customization module |
Features: |
||||||
|
|
||||||
## Features: |
1. red highlight of Views rows that have class 'Unpublished'. |
||||||
|
2. pathauto fallback for pattern 'repository_items' that defaults to NID if field_pid is empty |
||||||
|
|
||||||
1. Pathauto fallback: if the pattern is named `repository_items` and the item does not have a value in `[node:field_pid]` then `[node:nid]` will be used. |
Configuration: |
||||||
2. CSS library to highlight "Unpublished" things: When you render a View, if it's in the (hardcoded) list, this module will apply a red highlight of rows that have class 'Unpublished'. |
|
||||||
3. Adds Conditions (e.g. for use in Contexts) for "Media is published" and "Taxonomy term is published" |
|
||||||
4. Fixes a bug in DGI's Islandora Hierarchical Access (possibly now addressed by [this commit](https://github.com/discoverygarden/islandora_hierarchical_access/commit/aaff6f4481cdfcb4335572c7db943223076ca28b) where the module was granting public access to unpublished media and their files, when the node was published. This fix locks down unpublished Media and their files. |
|
||||||
|
|
||||||
## Configuration: |
1. Set up the views listed in `islandlives_views_pre_render()` so that under Table > Settings > "Row class" they have '{{ status }}'. Then the css selector should pick up 'Unpublished'. You may need to add the Published (status) field to the views. |
||||||
|
2. Create a pathauto pattern called 'repository_items'. |
||||||
1. (Pathauto fallback): Create a pathauto pattern called `repository_items`, and put `[node:field_pid]` in the pattern. With this module enabled it will fallback to node id if there is no pid. |
|
||||||
2. Set up any the views listed in `islandlives_views_pre_render()` so that under Table > Settings > "Row class" they have '{{ status }}' (and the status field is set to display "Unpublished" if the item is unpublished). Then the css selector should pick up 'Unpublished'. You may need to add the Published (status) field to the views. |
|
||||||
|
|||||||
Loading…
Reference in new issue