You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

DEPRECATED

This text field definition has been deprecated since Magnolia 6.0. It is part of the Magnolia 5 UI framework.

For the updated implementation, see Text field for Magnolia 6 UI instead.

TextFieldDefinition renders an editable Text field. When the rows property is 1 or unspecified, Magnolia renders an HTML input element of type text . When rows is greater than 1, Magnolia renders a textarea .

class: info.magnolia.ui.form.field.definition.TextFieldDefinition

fieldType: text

Text field properties

Simple text field definition. 

form:
  tabs:
    - name: tabText
      label: Text
      fields:
        - name: title
          fieldType: text
          label: Title
          rows: 2
          maxLength: 600

Node name

Value

 
form


 
tabs


 
tabText


 
fields


 
title


 
fieldType

text

 
label

Title

 
maxLength

600

 
rows

2

Unable to render {include} The included page could not be found.

Field-specific properties:

<field name>Name of field.

rows

optional, default is 1

Number of text rows.

maxLength

optional, default is -1

Maximum number of characters allowed in the field. Value -1 means unlimited.

A counter below the field shows how many characters you have left.

Common field properties:

Unable to render {include} The included page could not be found.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels