| 1 |
// $Id$
|
| 2 |
|
| 3 |
INSTALLATION
|
| 4 |
------------
|
| 5 |
1. BACKUP YOUR DATABASE (if something goes wrong)
|
| 6 |
|
| 7 |
2. INSTALL ADMIN MESSAGE
|
| 8 |
|
| 9 |
Unpack the module in your sites module directory. Then browse to
|
| 10 |
"Administer" -> "Site building" -> "Modules" and enable the module.
|
| 11 |
|
| 12 |
3. CONFIGURE ADMIN MESSAGE
|
| 13 |
|
| 14 |
The module provides the block "Admin messages" where the messages are listed
|
| 15 |
and can be closed by the users. Enable it at "Administer" ->
|
| 16 |
"Site building" -> "Blocks". You probably want to hide the block for
|
| 17 |
anonymous users: configure the block and check "authenticated user" at
|
| 18 |
"Show block for specific roles".
|
| 19 |
|
| 20 |
4. CREATE A MESSAGE
|
| 21 |
|
| 22 |
Go to "Create content" -> "Admin message" and enter a message.
|
| 23 |
Optionally set "Message visibility" options. It should show up in the
|
| 24 |
block when saved.
|
| 25 |
|
| 26 |
NOTE: There is no access control included, just the standard access provided
|
| 27 |
by Drupal, which means that all users with "access content" permission can
|
| 28 |
view messages. So don't provide any sensitive information. Access to the node
|
| 29 |
and the block will be used.
|
| 30 |
|
| 31 |
5. THEMING
|
| 32 |
|
| 33 |
Admin messages are themed via a template file. Copy the admin-message-node-tpl.php
|
| 34 |
file to your theme and alter the file as needed. This file is the wrapper for each
|
| 35 |
node. If you want to theme each node individually, use the standard node-[type].tpl.php
|
| 36 |
which in this case is node-admin-message.tpl.php. This can be used to remove the title
|
| 37 |
of the node or remove cck fields or such.
|