-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from localgovdrupal/1.x
PR for 1.7.0
- Loading branch information
Showing
25 changed files
with
1,459 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Group Alert banner | ||
LocalGov Alert banner integration with the [Group module](https://www.drupal.org/project/group). | ||
|
||
## Configuration | ||
### User permissions | ||
If you are using this module alongside the [localgov_microsites_group](https://github.com/localgovdrupal/localgov_microsites_group) module, then user permissions will be automatically setup during module installation. | ||
|
||
Otherwise enable at least the following permissions for **Groups**: | ||
- "Entity: View any alert banner entities" for both anonymous and authenticated users. | ||
- "Access Alert banner listing page" for group admins. | ||
|
||
### Block placement | ||
If you are using the [localgov_microsites_base theme](https://github.com/localgovdrupal/localgov_microsites_base), which is the default theme of the [LocalGov Drupal Microsites distribution](https://github.com/localgovdrupal/localgov_microsites_project), an Alert banner block will be automatically placed in the *Header* region. For all other themes, place an Alert banner block in a theme region towards the top of the page. | ||
|
||
## Banner listing | ||
Once this module is installed, an *Alert banner* tab should appear in each Group page. This page will list all the banners belonging to a Group. |
21 changes: 21 additions & 0 deletions
21
.../group_alert_banner/config/optional/block.block.localgov_alert_banner_microsites_base.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- localgov_alert_banner | ||
theme: | ||
- localgov_microsites_base | ||
id: localgov_alert_banner_microsites_base | ||
theme: localgov_microsites_base | ||
region: header | ||
weight: -10 | ||
provider: null | ||
plugin: localgov_alert_banner_block | ||
settings: | ||
id: localgov_alert_banner_block | ||
label: 'Alert banner' | ||
label_display: '0' | ||
provider: localgov_alert_banner | ||
include_types: | ||
localgov_alert_banner: '0' | ||
visibility: { } |
16 changes: 16 additions & 0 deletions
16
...alert_banner/config/optional/group.relationship_type.microsite-41d536b28977e933e431cc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- group.type.microsite | ||
- localgov_alert_banner.localgov_alert_banner_type.localgov_alert_banner | ||
module: | ||
- group_alert_banner | ||
- localgov_alert_banner | ||
id: microsite-41d536b28977e933e431cc | ||
group_type: microsite | ||
content_plugin: 'group_localgov_alert_banner:localgov_alert_banner' | ||
plugin_config: | ||
group_cardinality: 0 | ||
entity_cardinality: 1 | ||
use_creation_wizard: false |
Oops, something went wrong.