Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The html functionality is based on HTML 5.

Table of Contents
maxLevel3
indentSummary

How to add the html content to the knowledge base

How to use files with the html content

Internet files

Any reference made to a file located on the internet must contain the entire url to that file.

For example:

Code Block
<img src="http://www.marin.nl/static/marinpresentation/img/logo.jpg" alt="MARIN logo">

will display the MARIN logo as it is seen on www.marin.nl.

Local files

Any reference made to a local file from the QHtml5Content parameter must contain the full path on the disk for that specific file.

In the most of the cases, the location of the files that come with the application differs from one installation to another. In order to solve this issue and to prevent the hardcoding of paths, a keyword must be used: !APPLIC. This keyword will be replaced at render time by the correct and full path of the Applic folder from the corresponding knowledge base folder.

The file that is mentioned in the html code must be placed manually to the Applic folder of the knowledge base: My_Knolwedge\kbs\<knowledge base name>\Applic\ .

For example, for a knowledge base called QHtml5Pics stored in the default  My Knowledge location, the following code in the QHtml5Content parameter

Code Block
languagehtml/xml
<img src="file:///!APPLIC\marin_logo_long.jpg" alt="MARIN logo" height=50>

will produce the following code in the rendered page

Code Block
languagehtml/xml
<img src="file:///M:\My%20Documents\My_Knowledge\Kbs\_QHTML5PICS\Applic\\MARIN_logo_long.jpg " alt="MARIN logo" height=50>