1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 00:37:02 +02:00

Add new $pages API methods: findIDs(), sort(), insertAfter, insertBefore(). Add support for negative "limit" and "start" values in selectors, where negative values reference the end of the set rather than the beginning. Add support for "eq=n" (or alias "index=n") selectors (both WireArray and PageFinder) for pulling a specific n'th item, can also specify "first" or "last" for "n". Update $page->editUrl(true) method to force return of edit URL with scheme and hostname.

This commit is contained in:
Ryan Cramer
2016-12-23 12:18:58 -05:00
parent 0844bf2e47
commit e14d52f722
8 changed files with 479 additions and 41 deletions

View File

@@ -65,7 +65,7 @@ class PageTraversal {
* @param Page $page
* @param string|array $selector Selector to use, or blank to return all children
* @param array $options
* @return PageArray
* @return PageArray|array
*
*/
public function children(Page $page, $selector = '', $options = array()) {