assigned_nodes
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
The locations of one object, a page at a time. The locations tab used to draw every one of them: an object placed in many thousands of places - a widely reused piece of content - loaded all of them, fetched a path per row, and took the page down before it drew anything. The offset and limit here are honoured by the query, not by the template.
Usage
fetch( 'content', 'assigned_nodes',
hash( 'object_id', object_id,
[ 'offset', offset ],
[ 'limit', limit ],
[ 'sort_field', sort_field ],
[ 'sort_order', sort_order ] ) )Parameters
| Name | Type | Required | Default |
|---|---|---|---|
| object_id | integer | Yes. | |
| offset | integer | No. | 0 |
| limit | integer | No. | false |
| sort_field | string | No. | false |
| sort_order | string | No. | "asc" |
Source
kernel/content/function_definition.php, eZContentFunctionCollection::fetchAssignedNodes()
See also
Generated example: fetch( 'content', 'assigned_nodes' )
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment