The html functionality is based on HTML 5.
How to add the html content to the knowledge base
If the content of the html is the output of a relation (e.g. TEMPLATE$) that contains references to parameters yet to be calculated, there is no html available for display until this values are available.
For this situation, the DEFAULT_HTML attribute can be used to define the content of the html.
To make use of this functionality, follow these steps:
- Add the DEFAULT_HTML in the Data slot of the QHtml5Content in the entity
- The first character after the equal sign must be used to mark the end of the html content; do NOT use the character inside the html content
- Add the html content as needed.
How to use files with the html content
Any reference made to a file located on the internet must contain the entire url to that file.
will display the MARIN logo as it is seen on www.marin.nl.
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
will produce the following code in the rendered page