ProcessRecentPages::getAddAnotherNavItems()
Returns array of 'add another' pages
There is only one of each parent/template combination here. Each returned page has two additional properties populated:
- _addAnotherURL: URL to add another of the same type
- _addAnotherLabel: Recommended label for links
Usage
// basic usage
$array = $processRecentPages->getAddAnotherNavItems();
// usage with all arguments
$array = $processRecentPages->getAddAnotherNavItems(int $limit = 10, $oldest = 0, int $userID = 0);Arguments
| Name | Type(s) | Description |
|---|---|---|
$limit (optional) | int | Max items to include |
$oldest (optional) | string int | Timestamp or strtotime() compatible oldest date to retrieve from |
$userID (optional) | int | When omitted, current user assumed |
Return value
arrayof Page objects
ProcessRecentPages methods and properties
API reference based on ProcessWire core version 3.0.253