You are here

README.txt in Site Status Message 8

Same filename and directory in other branches
  1. 7 README.txt
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Installation
 * Configuration
 * Customisation
 * The Future


INTRODUCTION
------------

Current Maintainer: Gideon Cresswell (SkidNCrashwell)
<https://www.drupal.org/u/skidncrashwell>

The Site Status Message is a simple module to display a site wide message to
your users at the top of each page. Use cases could be to inform of known
downtime in the future, to advertise a special offer on the site or some
important news that needs highlighting.

An optional link to a page with more information can be displayed after the
message.

It was completely inspired by the Drupal.org downtime message displayed October
2013 before the update of Drupal.org from Drupal 6 to Drupal 7.


REQUIREMENTS
------------

None.


INSTALLATION
------------

Install as usual, see
https://www.drupal.org/documentation/install/modules-themes/modules-7 (Druapl 7)
or https://www.drupal.org/documentation/install/modules-themes/modules-8 (Drupal
8) for further information.


CONFIGURATION
-------------

The module can be configured on the Site Information (Drupal 7) or Basic site
settings (Drupal 8) configuration page at admin/config/system/site-information.
The message to be displayed can be up to 256 characters in length and the page
with more information can be an internal path (or external on the
Drupal 8 version) on the site. The message can optionally be displayed on all
the Admin pages of the site too.

If the message box is left blank, no message will be displayed.


CUSTOMISATION
-------------

The module ships with a template file that can be overridden in your own theme.

Copy the entire site-status-message.tpl.php (Drupal 7) or
site-status-message.html.twig (Drupal 8) into your theme directory to make
your own HTML changes.

On Drupal 7, further customisation can be made by copying the preprocess
function site_status_message_preprocess_site_status_message() to your
template.php and rename to THEME_preprocess_site_status_message().

A single CSS class #site-status is provided in the CSS file with the module
which can be overridden in your own CSS.


THE FUTURE
----------

In the future I would like to add these enhancements -

 * Allow external URLs to be used for the Read More link (Drupal 7)
 * Schedule messages
 * Show messages on specific site pages

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Configuration
  7. * Customisation
  8. * The Future
  9. INTRODUCTION
  10. ------------
  11. Current Maintainer: Gideon Cresswell (SkidNCrashwell)
  12. The Site Status Message is a simple module to display a site wide message to
  13. your users at the top of each page. Use cases could be to inform of known
  14. downtime in the future, to advertise a special offer on the site or some
  15. important news that needs highlighting.
  16. An optional link to a page with more information can be displayed after the
  17. message.
  18. It was completely inspired by the Drupal.org downtime message displayed October
  19. 2013 before the update of Drupal.org from Drupal 6 to Drupal 7.
  20. REQUIREMENTS
  21. ------------
  22. None.
  23. INSTALLATION
  24. ------------
  25. Install as usual, see
  26. https://www.drupal.org/documentation/install/modules-themes/modules-7 (Druapl 7)
  27. or https://www.drupal.org/documentation/install/modules-themes/modules-8 (Drupal
  28. 8) for further information.
  29. CONFIGURATION
  30. -------------
  31. The module can be configured on the Site Information (Drupal 7) or Basic site
  32. settings (Drupal 8) configuration page at admin/config/system/site-information.
  33. The message to be displayed can be up to 256 characters in length and the page
  34. with more information can be an internal path (or external on the
  35. Drupal 8 version) on the site. The message can optionally be displayed on all
  36. the Admin pages of the site too.
  37. If the message box is left blank, no message will be displayed.
  38. CUSTOMISATION
  39. -------------
  40. The module ships with a template file that can be overridden in your own theme.
  41. Copy the entire site-status-message.tpl.php (Drupal 7) or
  42. site-status-message.html.twig (Drupal 8) into your theme directory to make
  43. your own HTML changes.
  44. On Drupal 7, further customisation can be made by copying the preprocess
  45. function site_status_message_preprocess_site_status_message() to your
  46. template.php and rename to THEME_preprocess_site_status_message().
  47. A single CSS class #site-status is provided in the CSS file with the module
  48. which can be overridden in your own CSS.
  49. THE FUTURE
  50. ----------
  51. In the future I would like to add these enhancements -
  52. * Allow external URLs to be used for the Read More link (Drupal 7)
  53. * Schedule messages
  54. * Show messages on specific site pages