Home > WebEOC > Admin Guide > HTML Conventions > Miscellaneous Tags

Miscellaneous Tags

WebEOC offers a handful of miscellaneous tags that, although they cannot be easily categorized, are extremely useful when creating dynamic boards. These miscellaneous tags are listed below with their associated attributes, tips, and examples when appropriate.

You may wish to review the allowed values and requirements so as to better understand the tags listed and how to properly implement them on your boards.

Tags

<currentdate>

Inserts the current date. See also Populate Current Date and Time with JavaScript.

<currenttime>

Inserts the current time. See also Populate Current Date and Time with JavaScript.

<dataid>

Displays the dataid for the record; rendered as <a>.

Attribute

Allowed Values

Requirements

Description

*

*

Optional

Passes any HTML attribute–except onclick–through to the rendered tag.

<embedmap>

Integrates a map that can be interacted with in the display view of a board. With this tag, you can define the position, height, width, map, and map tools enabled for the embedded map. Additionally, you can associate the embedded map with the records that are being displayed by the <eocrepeatallrecords> tag on the same view.

Once embedded, users can interact with the map by clicking records in the list view that trigger a map embedded on the same page to zoom to the feature and display label. Any applied view filters for the record list are automatically applied to the embedded map, and users can further view a small-scale legend on the map that helps them distinguish different statuses and colors.

Attribute

Allowed Values

Requirements

Description

id

CDATA

Optional

Unique identifier for the embedded map, used by the target attribute for <feature> tags.

width

NUMBER

Optional

Width of the embedded map, either as a percentage or number of pixels.

height

NUMBER

Optional

Height of the embedded map, either as a percentage or number of pixels.

map-name

%mapname

Optional

Specifies the embedded map should display a map other than the default map.

page-data

(enabled | disabled)

Optional

Indicates whether the embedded map should only display the display view's current page of records.

scrolling

(auto|np|yes)auto

Implied

Determines whether to allow scrolling if the content does not fit in the defined embedded view.

side-menu

enabled|disabled

Optional

Set to enable to enable the side navigation menu in the embedded map.

view

%viewname

Optional

Allows users to click a feature to open a view of the associated record. This attribute is available only to clients who have the Maps Add-on.

Note: When embedding a map, a difficulty may arise in terms of record and map updates. To specify which sections of the boards should update and when, you may find it useful to use the updatesection attribute.

Note: The <feature> tag is required in the view in order to show records on an embedded map.

Example

<div class="right">
    <embedmap id="MyMap" class="map" scrolling="no" height="100%" width="100% map-name="GA Hospitals" page-data="enabled"></embedmap>
<div>

<embedrss>

Mechanism that allows an RSS feed to be embedded in a view; rendered as <div>. When using this tag, keep in mind that, for security reasons, access to the actual RSS feed should be conducted from the WebEOC server.

Attribute

Allowed Values

Requirements

Description

class

CDATA

Optional

CSS class identifiers; pass-through attribute that allows the resulting HTML container's class to be specified.

displaytime

(SECONDS)0

Implied

Number of seconds to display the page size of items. 

This attribute is only applicable if <numitems >is specified. If you do not specify a number of items, only the latest <numitems> are displayed.

Tip: 0=no auto-paging.

feedexpiration

(MINUTES)30

Implied

How often the server goes to the feed for updates.

Note: The minimum is 5.

height

LENGTH

Optional

Container height of the RSS feed, in pixels.

omitheader

(false|true)false

Implied

Displays the title of the RSS feed or not.

pagesize

(NUMBER)0

Implied

Number of items to display at once.

Tip: 0=all items.

quantity

(NUMBER)20

Implied

Number of items to retrieve from the server.

Tip: 0=all items.

scrolling

(auto|np|yes)auto

Implied

Scrollbar or none. The default is set to auto.

src

URL

Required

URL of the RSS feed.

style

CDATA

Optional

Inline style information; pass-through attribute that allows the resulting HTML container's style to be specified.

updateinterval

(MINUTES)15

Implied

How often the client goes to the server for updates.

Note: The minimum is 5.

width

LENGTH

Optional

Container width of the RSS feed, in pixels.

title

text

Optional

HTML title attribute that passes through to rendered <div> element.

Example

<embedrss src="http://example.com/rss/topstories.rss"
width="100%" height="50" scrolling="true" />

<feature>

In WebEOC 8.3+, this tag creates a field in the board for storing feature data (points, lines, or polygons). The field is rendered as a button or link that can be used to open the map, and <eocfield> can be used on display views for default rendering.

Attribute

Allowed Values

Requirements

View Type

Description

address-field

%fieldname

Optional

Input

Name of the field that contains an address. This tag is useful for automatically geocoding the address upon opening the map. The attribute can be called address or address-field.

autopopulate

address, lat-long, device

Optional

Input

Automatically populates the feature with data from the address field, data from the latitude and longitude fields, or the device's GPS location.

icon-field

%fieldname or expression

Optional

Display

Input

Specifies the field that indicates the icon for this feature, or contains an expression that includes the icon-field-list attribute to define the icon to use for the feature.

icon-field-list

%listname

Optional

Display

Input

When included in the icon-field attribute's expression, specifies the icon to use for the feature.

icon-mode

(icon, label, none) icon

Optional

Display

Specifies the type of icon or label that appears with the feature on the map. If you specify none, no icon or label appears with the feature, but a tooltip appears when the user points to the feature.

label-field

%fieldname

Optional

Input

Specifies the field that will provide the label for this feature.

latitude-field

%fieldname

Optional

Input

Specifies the field that provides the latitude of the feature when autopopulate is used.

locate

boolean

Optional

Input

If set to true, the user location will be automatically found when the view is opened.

longitude-field

%fieldname

Optional

Input

Specifies the field that provides the longitude of the feature when autopopulate is used.

map

%mapname

Optional

Display

Input

Specifies the map that should be used; defined by the administrators in the Maps Admin Manager.

name

CDATA

Required

Display

Input

Name of the feature field.

shape

point, linestring, polygon, circle

Optional

Input

Specifies the default feature type when opening from an input view. May be changed by the user after opening the map.

status-field

%fieldname or expression

Optional

Display

Input

Specifies the field that indicates the status for this feature, which is often a list with colors and icons assigned, or contains an expression using the status-field-list attribute to determine the feature's icon and color.

status-field-list

%listname

Optional

Display

Input

When included in the status-field attribute's expression, specifies the list indicating the feature's icon and color.

target

%embedmap id

Optional

Display

Results in panning/zooming to the record when clicked. Used with the <embedmap> tag; value should be the embedmap ID.

tools

none, all

Optional

Input

If set to none, the only drawing tool visible on the edit page is the feature type specified in the shape attribute. If the tool attribute is not used or is set to all, all drawing features are available to the user.

type

(button, link) button

Optional

Display

Input

Specifies how the tag renders; either as a button or link.

Example

<feature name="location" icon-mode="label" status-field="status" address-field="address" shape="point" tools="none" type="link" class="webeoc-link">
<i class="icon-map"></i>Map
</feature>

Four attributes of the <feature> tag allow you to separate the icon and status for board features on a map. To accomplish this:

  • Define an expression in the status-field attribute using the status-field-list attribute to determine the feature's icon and its color.

  • Define an expression in the icon-field attribute using the icon-field-list attribute to determine the icon to use.

When these attributes are used in this way, the icon-field expression determines the feature's icon and the status-field expression determines its color.

<grouplist>

Adds a list of users and/or positions to the XML for the board to be used in conditional processing. Nothing is rendered to the user, but values are available in XML.

<incidentname>

Displays the name of the current incident or a Select drop-down field if in a master view.

<latitude>

Displays a feature's latitude on Input and Display views.

Attribute

Allowed Values

Requirements

Description

field

%featurename

Required

Name of the appropriate feature field.

Example

<latitude field="location" />

<longitude>

Displays a feature's longitude on Input and Display views.

Attribute

Allowed Values

Requirements

Description

field

%featurename

Required

Name of the appropriate feature field.

<pdflink>

This tag renders as a link or button the user can click to download a PDF version of the page. The following advanced attributes are available for use:

Attribute

Allowed Values

Requirements

Description

board

%boardname

Optional

Name of the board that contains the view.

enablejs

(false|true)false

Implied

Any JavaScript that runs on page load will run when true.

enablewebkit

text

Optional

Enables web kit rendering engine–handles html5, css3, and font awesome icons–for PDF documents.

footerfloatx

float

Optional

Starting x coordinate where the text renders in the footer.

footerfloaty

float

Optional

Starting y coordinate where the text renders in the footer.

footerfontsize

float

Optional

Font size of the footer text, measured in em font size units. If no font-size is specified, the default font size is 1 em.

footertext

text

Optional

Text of the footer. If no text is present, the footer is not shown. It is possible to show the current page number in addition to the total page number by using _currentpage and _pagecount respectively.

headerfloatx

float

Optional

Starting x coordinate where the text renders in the header.

headerfloaty

float

Optional

Starting y coordinate where the text renders in the header.

headerfontsize

float

Optional

Font size of the header text, measured in em font size units. If no font-size is specified, the default font size is 1 em.

headerfootertextalign

(left|center|right|justify|default)left

Implied

Alignment of the text in the PDF's header and footer.

headertext

text

Optional

Text of the header.

orientation

(portrait|landscape)portrait

Implied

PDF orientation. If not specified, the PDF's orientation is portrait.

type

(button|link)link

Implied

How the tag is rendered.

view

%viewname

Optional

Name of the view (if different from the current view). If a board is not specified, WebEOC assumes the current board.

*

*

Optional

Passes any HTML attribute–except onclick and href–through to the rendered tag.

Examples

<pdflink type="button" orientation="landscape" 
headerfootertextalign="center" headertext="For Official Use Only" 
headerfontsize="12" footertext="Page _currentpage of _pagecount" 
footerfontsize="12">Print PDF<pdflink>

Note: The PDF generated by the <pdflink> tag respects CSS page break properties.

<table style="page-break-after:always">...</table>
<tr style="page-break-before:always">...</tr>
<td style="page-break-inside:avoid">...</td>

<printbutton>

Adds a button to call the browser's print method; rendered as <button>, with the text of the button being "Print."

Attribute

Allowed Values

Requirements

Description

*

*

Optional

Passes any HTML attribute–except type–through to the rendered tag.

<returnbutton>

Adds a button to return to the previous screen; rendered as <button>.

Attribute

Allowed Values

Requirements

Description

*

*

Optional

Passes any HTML attribute–except type and onclick–through to the rendered tag.

<returnlink>

Adds a hyperlink to return to the previous screen; rendered as <a>.

Attribute

Allowed Values

Requirements

Description

*

*

Optional

Passes any HTML attribute–except href–through to the rendered tag.

<space>

Adds a space where the tag is located; self-closing; rendered as &nbsp.

Last modified

Tags

Classifications

This page has no classifications.