ProcessPageSearch::setDisplayFormat()

Set a display format

Usage

// basic usage
$processPageSearch->setDisplayFormat(string $name, string $format);

// usage with all arguments
$processPageSearch->setDisplayFormat(string $name, string $format, bool $textOnly = false);

Arguments

NameType(s)Description
$namestring

Session var name that will be used, output will be returned in JSON results indexed by $name as well.

$formatstring

Format string to pass to $page->getMarkup(str)

$textOnly (optional)bool

ProcessPageSearch methods and properties

API reference based on ProcessWire core version 3.0.253