Content

These documentation pages are no longer maintained. Please visit the new documentation site.

Module: Content.

Operator Description
accessChecks if the current user has access to a given functionality
bookmarksGet bookmarks for current user.
can_instantiate_class_listFetch list of classes the current user can create objects from.
can_instantiate_classesCheck if the current user is allowed to create classes.
classFetch content class
class_attributeFetch class attribute.
class_attribute_listFetch attribute list of specified class.
collected_info_collectionFetches an informationcollection object
collected_info_countWill count the collected information matching a certain value
collected_info_count_listDo a count on the value of collected integer info. Useful for...
contentobject_attributesFetches all attributes from a content object version
draft_countFetches the number of drafts for the current user
draft_version_listFetches the drafts for the current user
keywordFetches a array of keywords and node objects contain keywords...
keyword_countCount the number of node objects contain keywords start with...
listFetches and returns the children of a node.
list_countCounts and returns the number of children of a node.
locale_listReturns a list of the available locales
navigation_partsFetches all navigation part identifieres as an array
nodeFetches the specified content node.
non_translation_listfetches a list of the locales an object can be translated into
objectFetch a content object.
object_by_attributeFetches an attribute by value
object_count_by_user_idreturns the number of objects of a specific class created by...
pending_countfetches the number of pending objects for the current user
pending_listfetches the pending object for the current user
recentfetches the object(folders) where you recently published some...
same_classattribute_nodefetch nodes with the same attribute values
searchDoes a search in published content objects
section_listFetches the available sections.
tipafriend_top_listfetches a list of node objects sorted by most tiped
translation_listReturns the list of possible translations
trash_countReturns the number of objects in the trash
trash_object_listReturns a list of objects in the trash
treeFetches the children of a node recursively.
tree_countCounts the objects returned from the tree function.
versionFetches a specific version of an object.
version_countGets the number of versions for an object.
version_listFetches all versions for an object
view_top_listFetches a list of most viewed node objects.

Comments

Fetching a specific node

Small example of fetching a specific node:




{let result=fetch( 'content', 'node', hash( 'node_id', '2') )}


 {$:result.name}


{/let}


Contents

Reference

Database diagram
Template operators
Template functions
Data fetching
    Class
    Content
       access
       bookmarks
       can_instantiate_class_list
       can_instantiate_classes
       class
       class_attribute
       class_attribute_list
       collected_info_collection
       collected_info_count
       collected_info_count_list
       contentobject_attributes
       draft_count
       draft_version_list
       keyword
       keyword_count
       list
       list_count
       locale_list
       navigation_parts
       node
       non_translation_list
       object
       object_by_attribute
       object_count_by_user_id
       pending_count
       pending_list
       recent
       same_classattribute_node
       search
       section_list
       tipafriend_top_list
       translation_list
       trash_count
       trash_object_list
       tree
       tree_count
       version
       version_count
       version_list
       view_top_list
    Collaboration
    Layout
    Notification
    Package
    Section
    Shop
    URL
    User
Modules
XML tags


Created

06/02/2004
12:50:11 pm
by Balazs Halasy

Last updated

22/02/2005
3:32:54 pm
by Ole Morten Halvorsen

Authors

Balazs Halasy
Ole Morten Halvorsen



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