FieldtypePageTitle
Stores a page title
Functionally equivalent to FieldtypeText but reserved for use as a
title field. Extends FieldtypeText. Inherits all TextField settings.
string — the page title, or empty string '' when blank.
// Get
$page->title // string
// Set
$page->title = 'My Page Title';
$page->save('title');Supports the same string operators as FieldtypeText:
$pages->find('title=About Us');
$pages->find('title*=keyword'); // fulltext
$pages->find('title^=Welcome'); // starts with
$pages->find('title=""'); // no title- Compatible only with fieldtypes implementing
Fieldtype(e.g.Page TitleCompatible Fieldtype).Page TitleLanguage - Inherits all settings from
TextField(textformatters, maxlength, etc.). - Database column:
text NOT NULL, indexed.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Fieldtype class also inherits all the methods and properties of: FieldtypeText, Fieldtype, WireData and Wire.
Common
| Name | Return | Summary | |
|---|---|---|---|
Fieldtype Fieldtype Fieldtype | Fieldtypes | Get compatible Fieldtypes | |
Fieldtype Fieldtype Fieldtype | string | Get the Field class to use for fields of this type | |
Fieldtype Fieldtype Fieldtype | Inputfield InputfieldPageTitle | Get Inputfield | |
Fieldtype Fieldtype Fieldtype | None | This field is only used for new fields in advanced mode | |
Fieldtype Fieldtype Fieldtype | string | Sanitize value for storage |
Additional methods and properties
In addition to the methods and properties above, Fieldtype
API reference based on ProcessWire core version 3.0.261