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 de

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 to allow 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+, creates a field in the board for storing feature data (points, lines, polygons, and so forth). Rendered as a button or link that can be used to open the map. <eocfield> can be used on display views for default rendering.

Attribute

Allowed Values

Requirements

View Type

Description

address

%fieldname

Optional

Input

Name of the field that contains an address. Useful for automatically geocoding the address upon opening the map from an input view.

autopopulate

(true, false)

Optional

Input

Autopopulates the feature from the data entered in the address field or the latitude and longitude fields.

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, line, 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

Optional

Input

Specifies the field that indicates the status for this feature; often a list with colors and icons assigned.

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" label-field="label" status-field="status" address="address" shape="point" type="link" class="webeoc-link">
<i class="icon-map"></i>Map
</feature>

<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>

Introduced for WebEOC 7.0.3, this tag downloads a PDF version of the page; rendered as <a> or a button. With WebEOC 7.7, the following advanced attributes were enabled 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.

You must to post a comment.
Last modified

Tags

Classifications

This page has no classifications.