Menu Editor

(Since 1.2.0) -- display a segment of your site's navigation
Pods allows you to define your own menu structure. Once this structure is created, you can display it (or parts of it) on your site. This is perfect for adding primary or local navigations.

Usage

When you first go to the Menu Editor, you'll see the "Home" section with a little icon next to it. Clicking on the icon will allow you to add a new child item to Home. You can keep adding children (or edit existing menu items) by clicking on the appropriate radio button in the edit box. You may need to refresh the page before adding child items to new menu items.

Examples

<?php
// Display items from Home up to 1 level deep
echo pods_navigation();
 
// Same as above (top level navigation)
echo pods_navigation('<root>', 1);
 
// Display the entire menu structure
echo pods_navigation('<root>', 0);
 
// Display the "about" page and everything in it
echo pods_navigation('about', 0);
 
// Display the "about" page and up to 3 levels deep
echo pods_navigation('about', 3);
?>