ez.no / exponential / documentation / reference / data fetching / section / object_list
fetch( 'section', 'object_list', hash(
'section_id', section_id,
[ 'offset', offset, ]
[ 'limit', limit, ]
[ 'sort_order', sort_order ] ) )
| Name | Type | Description | Required |
|---|---|---|---|
| section_id | integer | ID of the section | yes |
| offset | integer | offset to start at | no |
| limit | integer | max. number of objects to fetch | no |
| sort_order | array | sort order, if not specified, the result will be sorted by id of object, desc. | no |
An array of objects in a section defined by its id.
The offset, limit and sort_order parameters have the same structure and meaning as in the fetch list in the module content.
{let sectionobj=fetch( 'section', 'object_list', hash( 'section_id', 1, 'limit', 15, 'offset', $view_parameters.offset ) )} {section var=obj loop=$sectionobj} {$obj.name}<br /> {/section} {/let}
Log in or create a user account to comment.
Comments