ez.no / exponential / documentation / reference / data fetching / content / navigation_parts
fetch( 'content', 'navigation_parts' )
| Name | Type | Description | Required |
|---|
Collection of navigation part identifiers in an array
This fetch find all navigation parts defined in the system and return an array with them. Each element in the array consists of:
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' );
{section var=part loop=fetch( 'content', 'navigation_parts' )} {$part.name|wash} ({$part.identifier}) {/section}
Comments