Field::fieldname
Version 3.7
Joined pages
Version 3.7
Joined pages
Return Pages -object with all joined pages.
Property names can be chained to methods in Pages -object and even further method/property in the first Page -object.
Object Pages
List all order rows:
foreach ( $Order->order_rows as $OrderRow ){
$OrderRows[] = "<div>{$OrderRow->name} {$OrderRow->price}</div>";
}
// This is shorthand for:
foreach ( $Order->order_rows->sivut() as $OrderRow ){ ... }
If chained further, returns call to first Page:
$phone = $Order->client->phone;
// This is shorthand for:
$phone = $Order->client->sivu()->phone;