Skip to the content
Documentation

TextBlock Field Type: comparison of v.2 vs v.3

No ratings yet

Versions Compared

Old Version 2

changes.mady.by.user Dominika Kurek

Saved on Apr 29, 2016

compared with

New Version Current

changes.mady.by.user André Rømcke

Saved on Jan 04, 2017

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This Field Type represents a block of unformatted text.

Name Internal name Expected input type
TextBlock eztext string

Description

The Field Type handles a block of multiple lines of unformatted text. It is capable of handling up to 16,777,216 characters.

PHP API Field Type

Input expectations

Type Example
string
"This is a block of unformatted text"

Value object

Properties

The Value class of this Field Type contains the following properties:

Property Type Description
$text string This property will be used for the text content.
String representation

A TextBlock's string representation is the the $text property's value, as a string.

Constructor

The constructor for this value object will initialize a new Value object with the value provided. It accepts a string as argument and will import it to the $text attribute.

Validation

This Field Type does not perform any special validation of the input value.

Settings

Settings contain only one option:

Name Type Default value Description
textRows integer 10 Number of rows for the editing control in the administration interface.

 

Comments

Add a comment

Comments are read by a moderator before they appear.