CatalystX::NavigationMenu
my $nm = CatalystX::NavigationMenu->new(); $nm->popupate($c); my $menu = $nm->get_navigation($c, {level => 0});
CatalystX::NavigationMenu provides a menu object to be used when creating and managing menus in Catalyst based on attribute data. For details of the Catalyst attributes see the L(Catalyst::Plugin::Navigation) documentation.
Populates the menu based on the controllers found in the Catalyst object.
Adds an element into the menu based on the Catalyst action provided.
Returns a child NavigationMenu item that contains the given path. If no child is found then undef is returned.
Adds the given menu item to this tree under the appropriate path entry. If the path entry isn't found then it is added to this tree.
Returns an array reference to a menu entry. This will only show one level of a menu. The values of the array are the values returned by the L(NavigationMenuItem) nav_entry() method.
Returns the menu items found at this level in sorted order. The sort order is based on their order value and an alphanumeric sort of the menu label.
Returns a string containing the hierachy of the complete menu found here. This is mostly used for debugging that menus are setup correctly.
Catalyst
CatalystX::NavigationMenuItem
Derek Wueppelmann <derek@roaringpenguin.com>
Copyright (c) 2011 Roaring Penguin Software, Inc.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Plugin::Navigation, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Navigation
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Navigation
For more information on module installation, please visit the detailed CPAN module installation guide.