Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

fetch( 'content', 'list' )

Die Fetch-Funktion list des Moduls content: 20 Parameter, 1 erforderlich.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/fetch-functions/content/list.md

On this page

This page is a translation. Read the English original

fetch( 'content', 'list' )

Definiert in kernel/content/function_definition.php; sie ruft eZContentFunctionCollection::fetchObjectTree() auf (kernel/content/ezcontentfunctioncollection.php). Operationstyp: read.

Parameter

ParameterTypErforderlichStandard
parent_node_idintegerja
sort_byarrayneinarray()
only_translatedboolneinfalse
languagestringneinfalse
offsetintegerneinfalse
limitintegerneinfalse
depthintegernein1
depth_operatorstringnein'le'
class_idintegerneinfalse
attribute_filtermixedneinfalse
extended_attribute_filtermixedneinfalse
class_filter_typestringneinfalse
class_filter_arrayarrayneinfalse
group_byarrayneinfalse
main_node_onlyboolneinfalse
ignore_visibilityboolneinfalse
limitationarrayneinnull
as_objectboolneinnull
objectname_filterstringneinnull
load_data_mapboolneinnull

Beispiel

In einem Template (die Werte sind Platzhalter vom Typ des jeweiligen Parameters):

{def $result = fetch( 'content', 'list', hash( 'parent_node_id', 1 ) )}
{* mit jedem Parameter *}
{def $all = fetch( 'content', 'list', hash( 'parent_node_id', 1,
                                       'sort_by', array(),
                                       'only_translated', true(),
                                       'language', 'language',
                                       'offset', 1,
                                       'limit', 1,
                                       'depth', 1,
                                       'depth_operator', 'le',
                                       'class_id', 1,
                                       'attribute_filter', $attribute_filter,
                                       'extended_attribute_filter', $extended_attribute_filter,
                                       'class_filter_type', 'class_filter_type',
                                       'class_filter_array', array(),
                                       'group_by', array(),
                                       'main_node_only', true(),
                                       'ignore_visibility', true(),
                                       'limitation', array(),
                                       'as_object', true(),
                                       'objectname_filter', 'objectname_filter',
                                       'load_data_map', true() ) )}

In PHP dieselbe Funktion über den Function-Handler (lib/ezutils/classes/ezfunctionhandler.php):

$result = eZFunctionHandler::execute( 'content', 'list', array( 'parent_node_id' => 1 ) );

In einem ausgelieferten Template

Die erste Verwendung in den Templates dieser Installation, design/standard/templates/node/view/sitemap.tpl Zeile 16:

{let sub_children=fetch('content','list',hash(parent_node_id,$Child:item.node_id,limit,$page_limit))}

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus kernel/content/function_definition.php, kernel/content/ezcontentfunctioncollection.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x