Homepage — Linemode Site-wide alert

If there are computer problems, using Cascade to set the message in the alert component may not be possible.  The message can be set by someone in the Unix group with root access.

Requirements: because cascade access is unavailable root access is needed to edit the server files directlyComments have been added to the alert box so that a site wide message can be added in the event Cascade is down and www is still up.

There are two include files that need to be updated

  • One is for sites using the responsive template
  • The other for the fixed width template.

Elements on both includes should have the same id. This id is usually the publish date timestamp of the alert but if it is updated without Cascade you can enter whatever you want. The purpose of this id is to keep a record of whether the user has seen the message already and wants to hide it. If the user decides to close it a session variable is stored marking they closed it. When they go to another page on the site it will then stay closed unless this id changes.

The id needs to be changed in both includes anytime you update the message.

Things to change are below and in bold/large font.

Responsive template

/opt/cascade_data/www-prod/resources/includes/alert.html
<div class=”row” id=”id1“>
<div class=”columns”>
<div data-alert=”data-alert” class=”alert-box message”>

    Place your message here.

<a href=”#” class=”close”>x</a>
</div>
</div>
</div>

Static Template

/opt/cascade_data/www-prod/resources/includes/alert-nonresponsive.html

<div class=”alert-section” id=”id1“>
<div>
   Place your message here.
     <a href=”#” class=”close”>x</a>
</div>
</div>