Lightnote CMS - web 2.0 content management system

Textbox

Represents windows textbox control.

On this page

XML Configuration

Element name: textbox

Attribute Name Type Required Default Description
name String Yes n / a Variable name of user control. Which you can use whether in your template file, or in your extension.
friendlyName String No n / a
Control's friendly name displayed in CMS backend.
multiline Boolean ("true" or "false") No false Sets whether this is a multiline textbox.
maxlength
Integer
No
0
Sets maximum number of characters the user can type or paste into the text box control.
<userControls>
    <textbox name="mytext" friendlyName="My text" maxlength="50" 
    multiline="false"></textbox>
</userControls>

PHP Class

Class name: UC_textbox

Fields
$maxlength = 0

Maximum number of characters the user can type or paste into the text box control. 0 = no limit.

Type
integer
$multiline = false

Indicates whether this is a multiline textbox.

Type
boolean
Methods
string GetValue()

Returns the value of the control.

Returns string
string SetValue(value)

Sets the value of the control.

Parameters
string value - new value.