object_list

Summary

Fetches the list of objects which belong to given section. Available from version 3.5 only!

Usage

fetch( 'section', 'object_list', hash(
     'section_id', section_id,
  [  'offset', offset, ]
  [  'limit', limit, ]
  [  'sort_order', sort_order ]  ) )

Parameters

NameTypeDescriptionRequired
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

Returns

An array of objects in a section defined by its id.

Description

The offset, limit and sort_order parameters have the same structure and meaning as in the fetch list in the module content.

Examples

{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}

Comments

Log in or create a user account to comment.

Contents

Reference

Database diagram
Template operators
Template functions
Data fetching
    Class
    Content
    Collaboration
    Layout
    Notification
    Package
    Section
       object
       object_list
       object_list_count
       roles
       user_roles
    Shop
    URL
    User
Modules
XML tags


Created

04/10/2004
3:35:05 pm
by Jan Kudlicka

Last updated

04/10/2004
4:22:50 pm
by Jan Kudlicka

Authors

Jan Kudlicka



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.