Omeka Classic Logo
  • What’s new in Omeka
  • Tutorials
  • Reference
    • Global (Theming) Functions
    • Hooks
    • Filters
    • models
    • views/helpers
    • controllers
    • Packages
      • Acl
      • Application
      • Auth
      • Captcha
      • Controller
      • Db
      • File\Derivative
      • Filter
      • Form
      • Global Functions
        • Db-related functions
        • Locale-related functions
        • Log-related functions
        • Plugin-related functions
        • Search-related functions
        • Text-related functions
        • User-related functions
        • Utility-related functions
        • View-related functions
      • Http
      • Install
      • Job
      • Navigation
      • Output
      • Plugin
      • Record
      • Session
      • Storage
      • Test
      • Validate
      • View
    • libraries/Omeka
    • Omeka REST API
  • Helping With Documentation
  • Registering a new module or theme with omeka.org
Omeka Classic
  • Reference
  • Global (Theming) Functions
  • nav — Create a navigation menu of links.
  • View page source

nav — Create a navigation menu of links.

Navigation-related functions

Summary

nav(array $navLinks, $name = null, array $args = array())

Create a navigation menu of links.

Parameters:
  • $navLinks (array) – The array of links for the navigation.

  • $name (string) – Optionally, the name of a filter to pass the links through before using them.

  • $args (array) – Optionally, arguments to pass to the filter

Returns:

Zend_View_Helper_Navigation_Menu The navigation menu object. Can generally be treated simply as a string.

Usage

Examples

$navArray = array();
$navArray[] = array('label'=>'Browse All', 'uri'=>url('items'));
$navArray[] = array('label'=>'Browse By Tag', 'uri'=>url('items/tags');

echo nav($navArray);

See Also

Previous Next

© Copyright 2012-2023, Omeka.

Built with Sphinx using a theme provided by Read the Docs.