README.txt 1.94 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Tufts Alerts
==========
Tufts Alerts allows site editors to create alert banners with urgent or marketing messages. It installs two 
content types: Emergency Alert and Marketing Alert. 

The Emergency Alert allows for up to 3 levels of alert (high, medium, low) with corresponding red, yellow 
and gray backgrounds. 

The Marketing Alert allows for the selection of a background color, alert text and a 
required call-to-action button. 

In both content types, site editors specify the path(s) where the alert banners should appear. Editors 
should be mindful of not placing more than 1 banner of each type on a path/page since only 1 banner of
that type (the most recently updated one) will actually appear.

Installation
===================

1) Install and enable the module

2) Set permissions on roles allowed to create/edit/delete node types Marketing Alert and Emergency Alert

3) Place the blocks "Tufts Emergency Alert block" and "Tufts Marketing Alert block" in the theme regions where you want the blocks to display. 
   Do not place any visibility restrictions on the blocks since paths are set at the node level.

4) Create node instances of Marketing Alert and/or Emergency Alert as needed. Be sure to specify appropriate paths and publish the node for it to appear.

Theming
==============

The module provides two block (wrapper) templates and two node templates in templates/:

tufts-emergency-alert.html.twig
node--emergency-alert.html.twig
  
tufts-marketing-alert.html.twig
node--marketing-alert.html.twig  

Copy these to your theme if you need to override them.

The module also provides default stylesheets in css/:

emergency-alert.css
marketing-alert.css

Copy these to your theme to override them. IMPORTANT: please limit style changes to small adjustments to better fit the alerts 
to your theme. Keep the background colors, button styles, font styles, etc. intact. These are styles set by University Communications and 
Marketing for brand compliance.