Hitachi

JP1 Version 12 JP1/Navigation Platform Content Editing Guide


4.13.11 Example of coding an HTML part

This subsection describes an example of coding an HTML part.

Note

The Data Store Plugin or an I/O Plugin created by a developer enables you to output source codes to an HTML part. For details about the output from the I/O Plugin, ask the system administrator.

Organization of this subsection

(1) When using an external CSS in HTML parts

An example of entering source codes in the HTML source string text box in the Attribute Settings window (when creating an external CSS file) is shown below.

(2) When using parameters in HTML parts (when embedding parameters by using the {{param}} format)

An example of how to type an HTML source string into the HTML source string text box in the Attribute Settings window and an example of how a parameter name is converted to a parameter value (an example applicable when a parameter name is embedded into an HTML source string by using the {{param}} format) are provided below.

<table border="1">
  <caption>{{caption}}</caption>
  <tr>
    <td>title</td>
    <td>{{title}}</td>
  </tr>
  <tr>
    <td>description 1</td>
    <td>{{ detail1 }}</td>
  </tr>
  <tr>
    <td>description 2</td>
    <td>{{ detail2 }}</td>
  </tr>
</table>
<table border="1">
  <caption>table information 1</caption>
  <tr>
    <td>title</td>
    <td>title 1</td>
  </tr>
  <tr>
    <td>description 1</td>
    <td>description 1</td>
  </tr>
  <tr>
    <td>description 2</td>
    <td></td>
  </tr>
</table>

(3) When using parameters in HTML parts (when embedding parameters by using the {{{param}}} format)

An example of how to type an HTML source string into the HTML source string text box in the Attribute Settings window and an example of how a parameter name is converted to a parameter value (an example applicable when a parameter name is embedded into an HTML source string by using the {{{param}}} format) are provided below.

In this example, the parameter value is a path to a file. Thus, the parameter name is embedded by using the {{{param}}} format so that the HTML special characters (& < > " ' / ` =) inside the parameter value are not escaped.

<img src="{{{img_url}}}" style="{{{img_style}}}" />
<img src="/ucnpuserstaticfiles/img1.png" style="" />