Skip to content

Link#

Hyperlinks are used to create clickable links in Imperia templates.

Syntax#

The syntax for creating a hyperlink in Imperia templates is as follows:

<a href="IMPERIA:name">link text</a>

Here, IMPERIA:name represents the URI or target of the hyperlink. You can replace name with your desired field name or the specific link you want to reference.

Link Text Entry#

In Edit mode, an input field is displayed to enter the link text. To enable the input field for entering the link text, use the following syntax:

<a href="IMPERIA:link">
  #IF <!--XX-editmode-->
    Link text:
  #ENDIF
  <input name="IMPERIA:linktext">
</a>

With this syntax, the input field for the link text is only shown in Edit mode. The IMPERIA:link represents the field for entering the URI or target of the hyperlink, while the IMPERIA:linktext is the field to enter the desired link text.

By using this syntax, you can dynamically generate hyperlinks with custom link text based on user input.