FieldtypePageTitle

Stores a page title

Functionally equivalent to FieldtypeText but reserved for use as a title field. Extends FieldtypeText. Inherits all TextField settings.

Value type

string — the page title, or empty string '' when blank.

Getting and setting values
// Get
$page->title  // string

// Set
$page->title = 'My Page Title';
$page->save('title');
Selectors

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
Notes
  • Compatible only with fieldtypes implementing FieldtypePageTitleCompatible (e.g. FieldtypePageTitleLanguage).
  • Inherits all settings from TextField (textformatters, maxlength, etc.).
  • Database column: text NOT NULL, indexed.
API reference: methods, hooks

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the FieldtypePageTitle class also inherits all the methods and properties of: FieldtypeText, Fieldtype, WireData and Wire.

Show class?     Show args?       Only hookable?    

Additional methods and properties

In addition to the methods and properties above, FieldtypePageTitle also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.261