Version 6 (modified by 9 years ago) ( diff ) | ,
---|
how to create a CAP message template
Creating Alert Template
An alert template is a pre-populated CAP message that is created to speed-up with the message creation as well as preserving the consistency of a message. Wherever the event specific information such as the DATE or LOCATION or other information you may create place holders for those values within the text. You should mark up places in the text that need to be changed within a pair of square brackets with capitalized text inside as shown below.
Example the headline text in a CAP message template for a earthquake event could be something like this: [YYYY] [MMM] massive earthquake hit [LOCATION]. If we talk about the recent earthquake in Nepal, then the message creator would replace the MMM YYYY and LOCATION to create the headline to be specific as such: then the headline could be 2015 April - massive earthquake hit Nepal.
You can fill in the alert details and info segment details in the template alert message. For creating predefined area, see here
Here I will guide you through how to create Earthquake Template. You can use this as a guideline to create any event specific template.
- In your browser, open up the SAMBRO system
- Once you have opened the system, various menu options are available on the top. Click on Alerting option.
- This opens up the table with the alert. We now begin to create template. On the side menu, under TEMPLATES, there is an option to Create. Click on that.
- Now a form appears to fill in the Alert section of CAP Template Message. Fill in the values. You can refer the picture on the side.
Importing/ Prepopulating Multi Language Alert Template
You can prepopulate the multi-language template into the system or if your site is already live, you can import the multi-language.
- First start by importing Alert. In the browser, go to /eden/cap/alert/import. You can download the template and use that to prepare the data.
The column name -
Template Title (does exactly what it says),
Identifier (you need to remember this because we use this identifier to link to the info segment which you will see below [of course, the identifier for the actual alert is not this one so don't be afraid ;-)]),
Scope (is one of 'Public, Restricted or Private' : take care of the match case as this will go into database),
Restriction (if Scope=Restricted, use this to denote who is the restriction scope audience),
Recipients (use list of strings eg '["Coast Guard", "Public", "Local Officials"]' to fill the value in this field)
Note' (free text that gives in the purpose or the significance of the message)
Incidents(list of strings as Recipients. The list of possible values that can come in are here) - value on the left side of the colon (eg. "civil.volunteerRequest", "civil.publicEvent" etc) OR on this page, search for cap_incident_type_opts = { and you will find them.
Attachments (2)
-
cap_alert.csv
(8.8 KB
) - added by 9 years ago.
Template Alert
-
cap_info - Copy.csv
(5.4 KB
) - added by 9 years ago.
TEMPLATE MULTI-LANGUAGE INFO
Download all attachments as: .zip