Text Input Fields - Input, Password,Textarea, WYSIWYG

Skip to end of metadata
Go to start of metadata

Input 


The input field is a simple text input field. It's data is stored in a VARCHAR column in the database. The display width and database column length can be configured in the object class definition

To set the value of an input field, the string value needs to be passed to the setter.

$object->setInput("Some Text");
$object->save();

Password


The password field is basically the same as the input field with hidden input characters. It's column length can not be changed, since passwords are always stored as MD5 Hash (32 characters). If a string shorter than 32 characters is passed to the setter, it is assumed that it is a plain text password, so pimcore creates a MD5 Hash of that password and stores it in the database. If a string with 32 characters is passed to the setter, pimcore assumes that a hash was given and stores the string without further hashing in the database. The maximum length of a plain text password is 30 characters.

Textarea


The textarea is an input widget for unformatted plain text. It is stored in a TEXT column in the database. Setting it's value works the same as for the input field. The width and height of the input widget can be configured in the object field definition.

WYSIWYG

The WYSIWYG (What You See Is What You Get) input field is identical with the textarea field except for the fact that it's input widget allows formatting of text and can even hold images and links (references to assets and documents). If images and documents are used in a WYSIWYG widget, they create a dependency for the current object. To insert an image, assets can be dragged to a WYSIWYG widget. In order to create a link, a document needs to be dragged and dropped on selected text in the WYSIWYG widget.The text is stored as HTML

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jan 24

    Roland Stoll says:

    Any plans to make the toolbar of the wysiwyg editor customizable? Similar to act...

    Any plans to make the toolbar of the wysiwyg editor customizable? Similar to action layouts?