Path

ez.no / exponential / documentation / reference / data fetching / content / navigation_parts


navigation_parts

Summary

Fetches all navigation part identifieres as an array

Usage

fetch( 'content', 'navigation_parts' )

Parameters

NameTypeDescriptionRequired

Returns

Collection of navigation part identifiers in an array

Description

This fetch find all navigation parts defined in the system and return an array with them. Each element in the array consists of:

  • name
  • identifier

Where name is the display name for the navigation part and identifier is the unique and global identifier string. The name can be translated so don't use it for string matches.

Navigation part identifiers are configured in menu.ini under the NavigationPart group in a variable called Parts.

To create your own part simply add a new entry.
Example:

Part[mycustomnavigationpart]=Custom navigation

If you want your string to be translatable you will need to place this PHP code somewhere accessible by the ezlupdate program.

ezi18n( 'kernel/navigationpart', 'Custom navigation', 'Navigation part' );

Examples

{section var=part loop=fetch( 'content', 'navigation_parts' )}

   {$part.name|wash} ({$part.identifier})

{/section}

Comments

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

19/11/2004
9:33:27 am
by Jan Borsodi

Last updated

19/11/2004
9:33:27 am
by Jan Borsodi

Authors

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.