User Controls
User controls are parts of user interface which allow user to input data. There are defined in XML configuration files within userControls xml element.
<userControls>
<textbox name="text1" friendlyName="Singleline textbox"></textbox>
<textbox name="text2" friendlyName="Multiline textbox" multiline="true"></textbox>
<image name="image1" friendlyName="Image"></image>
</userControls>
XML Element (which defines user control) must have 2 required attributes:
- name
- Variable name of user control, which you can use whether in your template file, or in your extension.
- friendlyName
- Control's friendly name displayed in CMS backend.
PHP Class
Each user control is class which derives from UserControl abstract class.