Home > WebEOC > Admin Guide > HTML Conventions > Boardresource Attribute

Boardresource Attribute

This WebEOC-specific attribute is intended to help you manage the resources available on a board. Such resources can include PDFs, animated elements, images, links, and more.

There are two types of board resources: global and local. Global resources can be found by opening the Admin window and going to ProcessBoards: View Board Resource. Here is where you upload files that you want to reference in boards. These files are exported and published with the board.  The recipient, either someone importing the board or a WebEOC Fusion subscriber, sees the board resources referenced on your board in their global resources (if they use WebEOC 7.5+). 

When you import a board resource, WebEOC realizes when a resource already exists as a global resource. If it is different, WebEOC categorizes the new import with the local board resources. When using the boardresource attribute, the system looks first at local board resources, followed by global board resources, to prevent board resource overwriting as boards are shared and published.

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.

Board Resources with WebEOC Fusion

Board resources are included when you publish boards across WebEOC Fusion.  However, in order to publish your board resources to subscribers, the subscribers must use WebEOC 7.5+. If you publish a board with board resources to subscribers on a previous WebEOC version, the files are not received.

Additionally, pay attention to the current limitation that does not allow publishing of board files exceeding 4 Mb (this includes the board and any attached board resources). WebEOC automatically excludes the board resources in these cases to attempt to publish the board.  As the publisher, you are notified if a board exceeds the limitation. If you proceed despite the limitation, the error log with the board shows that the board resources were excluded.

Tags

<a>

Extension of the standard HTML <a>. The boardresource attribute is used in place of the href attribute to reference a board resource file.

Attribute

Allowed Values

Requirements

Description

boardresource

%filename

Required

Board resource file name, case sensitive.

Example

If you have a PDF document that you want to be made available on the board, you can reference this file by using the following code:

<a boardresource="document.pdf">PDF Document Title</a>

boardresource

Allows items to be shared among views system wide or within a single board. The attribute is used on specific HTML tags to point to the location of a resource for that board. When used, the standard resource attribute is ignored. Therefore, when you include boardresource, do not include the standard attribute.

The following table lists the tags that support using the boardresource attribute and the standard attribute it takes the place of.

Tag

Standard Attribute

link

href

script

src

img

src

a

href

embed

src

object

data

iframe

src

Example

If you have an image file and a script that you want to include with the board:

<img boardresource="myimagefile.png"/>
<script type="text/javascript" boardresource="myscriptfile.js"/>

Note: It is a best practice to always include the type attribute in <script> tags. Doing so allows you to include any type of scripting language file, as long as you specify its type in the tag.

<embed>

Extension of the standard HTML <embed>. This boardresource attribute is used in place of the src attribute to reference a board resource file.

Attribute

Allowed Values

Requirements

Description

boardresource

%filename

Required

Board resource file name, case sensitive.

Example

If you have an animated pending icon, you can upload it and reference this file in your board by using the following code:

<embed boardresource="animatedicon.swf"></embed>

<iframe>

Extension of the standard HTML <iframe>, it is used in place of the src attribute to reference a board resource file.

Attribute

Allowed Values

Requirements

Description

boardresource

%filename

Required

Board resource file name, case sensitive.

Example

If you have an HTML file to place in an iframe, you can reference this file by using the following code:

<iframe boardresource="example.html"></iframe>

<img>

Extension of the standard HTML <img>. The boardresource attribute is used in place of the src attribute to reference a board resource file.

Attribute

Allowed Values

Requirements

Description

boardresource

%filename

Required

Board resource file name, case sensitive.

Example

If you have an additional logo you want displayed on a board, you can upload and reference it by using the following code:

<img boardresource="additionallogo.png"></img>

<link>

Extension of the standard HTML <link>; it is used in place of the href attribute to reference a board resource file.

Attribute

Allowed Values

Requirements

Description

boardresource

%filename

Required

Board resource file name, case sensitive.

<object>

Extension of the standard HTML <object>; used in place of the data attribute to reference a board resource file.

Attribute

Allowed Values

Requirements

Description

boardresource

%filename

Required

Board resource file name, case sensitive.

<script>

Extension of the standard HTML <script>; used in place of the <src> attribute to reference a board resource file.

Attribute

Allowed Values

Requirements

Description

boardresource

%filename

Required

Board resource file name, case sensitive.

Example

To add a JavaScript file to a board, upload it to your board resources and reference it in your board by using the following code:

<script boardresource="samplefile.js"></script>
You must to post a comment.
Last modified

Tags

Classifications

This page has no classifications.