We need you!

Icon

The IzPack documentation needs work, and you are invited to edit it!

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Usage

A panel for showing HTML-formatted content.

This can be used for instance to show a 'README' content. It presents text of any length. The text is specified by the HTMLInfoPanel.info resource.

To add an image to the HTMLInfoPanel you simply need to add a ressource to your install.xml with an ID decided by you, then you can call this image by refering it by this same ID.

In install.xml:

Code Block
titleinstall.xml
languagehtml/xml
<resources>
  <res src="logo.jpg" id="GHGHGH"/>
  .....

and in file.html:

Code Block
titleAccording HTML text
languagehtml/xml
<img src="GHGHGH"/>

Note that variables are being substituted in HtmlInfoPanel (e.g., $INSTALL_PATH will be replaced with the installation path).

You can define multiple HTMLInfoPanel with individual HTML texts by giving them a specific id. The resources must be named HTMLInfoPanel.<panelid> :

Code Block
languagehtml/xml
<resources>
  <res id="HTMLInfoPanel.readme" src="readme.html"/>
  <res id="HTMLInfoPanel.disclaimer" src="disclaimer.html"/>
  ...
</resources>
...
<panels>
  <panel classname="HTMLInfoPanel" id="readme" />
  <panel classname="HTMLInfoPanel" id="disclaimer" />
  ...
</panels>

Resources

ResourceDescription
InfoPanel.infoThe label text to be shown as panel label above the contents
HtmlInfoPanel.infoThe HTML-formatted text to be shown as panel content, unless a file resource is used (see above).