Page::getPages($field)

Version 2025.1

Get field pages

Return value

Object Pages

Arguments

$field
String field name.

Full documentation

JOIN field

Get Invoice rows where unit is hour:

$Invoice = $this->get('page', 'invoice', '1001');
$InvoiceRows = $Invoice->getPages('invoice_rows')->addWhere('unit', 'hour');

REFERENCE -field

Get Project tasks that are ready:

$Project = $this->get('page', 'project', '1001');
$ProjectTasks = $Project->getPages('task__project')->addWhere('status', 'Ready');