mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT - Added new method to display the number of total items in a paginated list within templates
This commit is contained in:
parent
1aa1d65932
commit
5c04dc5d67
@ -434,6 +434,13 @@ class PaginatedList extends SS_ListDecorator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the total number of items in the list
|
||||||
|
*/
|
||||||
|
public function TotalItems() {
|
||||||
|
return $this->getTotalItems();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the request object for this list
|
* Set the request object for this list
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user