HTML templates for the metadata preview

The HTML templates are used for configuring how metadata is displayed for a document or folder.

Metadata preview, HTML templatesHTML, metadata preview

You can define HTML templates for each metadata form. There is also a default template that is used if a specific template has not been defined for a metadata form.

HTML Templates folder

Custom HTML templates must be stored in ELO under Administration//HTML Templates.

HTML templates file format

You must apply the following naming convention: defaultH or defaultV. The file extension is htm.

mask{Nr.}{H|V}.htm

The following applies:

  • {no.}: Replace this placeholder with the metadata form ID.
  • {H|V}: Replace this placeholder with H (= horizontal) ORV (= vertical).

Example

mask3H.htm

Alternatively: To edit the default values for all metadata forms, store the defaultH.htm and defaultV.htm files in ELO and modify them according to your requirements.

Information: To view changes to the files directly, you must execute the CTRL+ALT+R keyboard shortcut after saving the respective HTM file. This command reloads the scripts and templates.

Variables

You can use the following variables in the HTML templates. They will be automatically evaluated by the ELO Java Client.

<!--ELO_T_A-->: Filing date

<!--ELO_T_B-->: Internal file attachment ID

<!--ELO_T_D-->: File date

<!--ELO_T_E-->: Owner

<!--ELO_T_I-->: Document ID

<!--ELO_T_K-->: Short name

<!--ELO_T_M-->: Name of the metadata form

<!--ELO_T_O-->: ELO object ID

<!--ELO_T_T-->: Document type ID

<!--ELO_T_V-->: Retention period

<!--ELO_T_D-->: File date

<!--ELO_T_...-->: Field contents. You must replace the (...) placeholder with the number of the desired field.

<!--ELO_N_...-->: Name of a field. You must replace the (...) placeholder with the number of the desired field.

Correct syntax

To ensure that the contents of variables are displayed correctly, every code block must start with the following variable:

<!--ELO_B_...-->: You must replace the (...) placeholder with the number of the desired field or the identifier for one of the variables specified above.

The code block must end with the following variable:

<!--ELO_E_...-->: You must replace the (...) placeholder with the number of the desired field or the identifier for one of the variables specified above.

Example: Owner

<!--ELO_B_E--><tr class="odd"><th class="index"><!--ELO_N_E--></th><td class="index"><!--ELO_T_E--></tr><!--ELO_E_E-->

Example: Standard variables

A number of additional variables and information are also available in the ELO Java Client.

These are some examples of additional information that can be displayed:

<!--ELO_N_CurrentVersionName-->: Display name of the Current version field

<!--ELO_T_CurrentVersionName-->: Contents of the Current version field

<!--ELO_N_CurrentVersionComment-->: Display name of the Comment field

<!--ELO_T_CurrentVersionComment-->: Contents of the Comment field

<!--ELO_N_CurrentVersionOwner-->: Display name of the Editor field

<!--ELO_T_CurrentVersionOwner-->: Contents of the Editor field

<!--ELO_N_CurrentVersionDate-->: Display name of the Version date field

<!--ELO_T_CurrentVersionDate-->: Contents of the Version date field

<!--ELO_T_ArchivingMode-->: Document status (Version control disabled, Version control enabled, or Non-modifiable)

Information: To temporarily disable an HTML template, change the short name of the template so that it no longer corresponds to the above format.

Was this information helpful?

  • Yes
  • No


The captcha is not correct. Please check the code.

*Mandatory fields

  We do not reply to support requests sent through this form.
If you require assistance, contact your ELO partner or ELO Support.