node

Summary

Fetches the specified content node.

Usage

fetch( 'content', 'node',
       hash( [ 'node_id', id, ]
             [ 'node_path', path ] ) )

Parameters

NameTypeDescriptionRequired
node_id integer ID of the node to be fetched. No.
node_path string Path of the node to be fetched No.

Returns

Object containing an ezcontentobjecttreenode.

Description

This function fetches the node that was specified using either the node_id parameter or the node_path parameter.

Examples

{* Fetch node number 42. *}

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

   

   {* Display the name of the node. *}

   {$node.name}

 

{/let}

The example above will fetch node number 42 and display the name of the node.

Comments

Log in or create a user account to comment.

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
1:08:41 pm
by Balazs Halasy

Last updated

01/06/2004
7:11:00 pm
by Jan Borsodi

Authors

Balazs Halasy
B�rd Farstad
Jan Borsodi



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.