Versions Compared

Key

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

...

How to add the html content to the knowledge base

 

Default value

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.

Code Block
languagehtml/xml
titleDefault html content
DEFAULT_HTML=|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<body style="font-family: Verdana, Arial,sans-serif">
    Please provide the input value to view the html.
</body>
</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.

For example:

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

...