Input Field#
Input fields are used to allow users to enter single-line text, such as article titles or image annotations. They provide a way to gather specific information from users.
Syntax#
To create an input field in Imperia templates, you can use the following syntax:
<input name="IMPERIA:Name" type="text" />
Here, IMPERIA:Name is the identifier for the input field. You can replace Name with your desired field name.
Escaping Mode#
In Imperia, the syntax for an input field can be extended with an escaping mode. This allows you to control how entered HTML code is treated.
To use an escaping mode, modify the syntax as follows:
<input name="IMPERIA:Mode:Name" type="text" />
Replace Mode with the desired escaping mode, and Name with your desired field name.
By default, if no escaping mode is defined, Imperia assumes the TEXTBR escaping mode. This mode ensures that entered HTML code is displayed as plain text without rendering any HTML tags.