Skip to the content
Documentation

navigation_part

No ratings yet

Summary

Fetches information about a navigation part.

Usage

fetch( 'content', 'navigation_part', hash( 'identifier', identifier ) )

Parameters

Name Type Description Required
identifier string The identifier of the desired navigation part. Yes.

Returns

An associative array (see below) or FALSE.

Description

This function fetches information about a navigation part. The identifier of the navigation part must be specified using the "identifier" parameter. The function returns a hash that consists of the following elements:

Key Type Description
name string The actual name of the navigation part (for example "Content structure").
identifier string The identifier of the navigation part (for example "ezcontentnavigationpart").

Examples

Example 1

{def $navigation_part=fetch( 'content', 'navigation_part',
                             hash( 'identifier', 'ezcontentnavigationpart' ) )}
{$navigation_part.name}

Outputs the name of the navigation part identified by the string "ezcontentnavigationpart".

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.