{"id":1267,"date":"2023-02-20T09:41:02","date_gmt":"2023-02-20T14:41:02","guid":{"rendered":"https:\/\/sls.gmu.edu\/web\/?p=1267"},"modified":"2024-01-18T15:05:36","modified_gmt":"2024-01-18T20:05:36","slug":"emergency-alert-message","status":"publish","type":"post","link":"https:\/\/sls.gmu.edu\/web\/2023\/02\/20\/emergency-alert-message\/","title":{"rendered":"Emergency Alert Message"},"content":{"rendered":"<p>In case of an emergency, we have implemented an alert message that would appear on every page at law.gmu.edu. Here\u2019s an example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1268\" src=\"https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/emergency-alert-1024x643.png\" alt=\"\" width=\"840\" height=\"527\" srcset=\"https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/emergency-alert-1024x643.png 1024w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/emergency-alert-300x188.png 300w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/emergency-alert-768x482.png 768w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/emergency-alert-1536x964.png 1536w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/emergency-alert-2048x1285.png 2048w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/emergency-alert-1200x753.png 1200w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<h2>To Activate the Emergency Alert Message<\/h2>\n<ol>\n<li>Log into MODX Manager, navigate to the Emergency container (id#12996), and open up the Emergency Message resource (id#<a href=\"https:\/\/www.law.gmu.edu\/manager\/?a=resource\/update&amp;id=12996\">12996<\/a>).<\/li>\n<li>Go to the Template Variables tab, select the Uncategorized tab on the left. Write an emergency alert message in the Content2010 box, which is the first box. Return to the Document tab, click on the Published button, then hit the Save button.<\/li>\n<li>Search for the <a href=\"https:\/\/www.law.gmu.edu\/manager\/?a=element\/chunk\/update&amp;id=3100\">2012_template_top<\/a> chunk, scroll down to this line (around line 29):<br \/>\n<code>[[-getResources? &amp;parents=`12995` &amp;depth=`1` &amp;tpl=`emergency_alert` &amp;tvPrefix=`` &amp;includeTVs=`1` &amp;limit=`1` ]]<\/code><br \/>\nRemove the first hyphen (-) to activate GetResources. (Because we hardly used this emergency alert message, activating this snippet might affect the site performance when we are not using it)<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1276\" src=\"https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/content2010-1024x709.png\" alt=\"\" width=\"840\" height=\"582\" srcset=\"https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/content2010-1024x709.png 1024w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/content2010-300x208.png 300w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/content2010-768x531.png 768w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/content2010-1536x1063.png 1536w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/content2010-1200x830.png 1200w, https:\/\/sls.gmu.edu\/web\/wp-content\/uploads\/sites\/2\/2023\/02\/content2010.png 1844w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<h2>To Deactivate the Emergency Alert Message<\/h2>\n<p>To deactivate the Emergency Alert Message, simply unpublished the Emergency Message resource (id#<a href=\"https:\/\/www.law.gmu.edu\/manager\/?a=resource\/update&amp;id=12996\">12996<\/a>). Comment out the GetResource snippet (by adding the hyphen back into the <a href=\"https:\/\/www.law.gmu.edu\/manager\/?a=element\/chunk\/update&amp;id=3100\">2012_template_top<\/a> chunk) is not required, but a good practice to prevent an extra dynamic call.<\/p>\n<h2>CSS Style<\/h2>\n<p>CSS style for emergency alert can be modified in the <a href=\"https:\/\/www.law.gmu.edu\/manager\/?a=element\/chunk\/update&#038;id=3144\">emergency_alert chunk<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In case of an emergency, we have implemented an alert message that would appear on every page at law.gmu.edu. Here\u2019s an example: To Activate the Emergency Alert Message Log into MODX Manager, navigate to the Emergency container (id#12996), and open up the Emergency Message resource (id#12996). Go to the Template Variables tab, select the Uncategorized &hellip; <a href=\"https:\/\/sls.gmu.edu\/web\/2023\/02\/20\/emergency-alert-message\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Emergency Alert Message&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[4,11],"tags":[49],"class_list":["post-1267","post","type-post","status-publish","format-standard","hentry","category-cms","category-web-development","tag-emergency"],"_links":{"self":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/1267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/comments?post=1267"}],"version-history":[{"count":0,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/1267\/revisions"}],"wp:attachment":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/media?parent=1267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/categories?post=1267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/tags?post=1267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}