HTML::Menu::Hierarchical

HTML Hierarchical Menu Generator
Download

HTML::Menu::Hierarchical Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Don Owens
  • Publisher web site:
  • http://search.cpan.org/~dowens/

HTML::Menu::Hierarchical Tags


HTML::Menu::Hierarchical Description

HTML Hierarchical Menu Generator HTML::Menu::Hierarchical is a Perl module that provides a way to easily generate a hierarchical HTML menu without forcing a specific layout. All output is provided by your own callbacks (subroutine refs) and your own navigation configuration.SYNOPSIS my $menu_obj = HTML::Menu::Hierarchical->new($conf, &callback, $params); my $html = $menu_obj->generateMenu($menu_item); or my $menu_obj = HTML::Menu::Hierarchical->new($conf, ); my $html = $menu_obj->generateMenu($menu_item); or my $menu_obj = HTML::Menu::Hierarchical->new($conf, $std_callback_name); my $html = $menu_obj->generateMenu($menu_item); In the first case, the callback is a function. In the second, the callback is a method called on the given object. In the third example, the callback is the name of a standard callback defined by HTML::Menu::Hierarchical itself (see the section on callback functions/methods). The $conf parameter is a navigation configuration data structure (described below). The $params parameter is an optional hash reference containing parameters pertaining to the menu as a whole. Recognized parameters are:first_with_url If this is set to a true value and you are using the 'url' field in the info hash (see below) in the configuration to specify the url for the menu item, then if a menu item is chosen that does not have a url configured, the url for that menu item will be changed to the url of the first child menu item that has a url configured. This works by looking at the items first child, then at that child's first child, and so on. It does not look at the second child.open_all This has the same effect as the open_all parameter in the menu configuration structure mentioned below, except that it affects the entire menu hierarchy.old_style_url When using the utilities urlEncodeVars() and addArgsToUrl(), this parameter controls which separator is used to separate key/value pairs in the generated query string. Setting old_style_url to a true value will cause an ampersand ('&') to be used as the separator.new_style_url When using the utilities urlEncodeVars() and addArgsToUrl(), this parameter controls which separator is used to separate key/value pairs in the generated query string. Setting new_style_url to a true value will cause a semicolon (';') to be used as the separator, as recommended by the W3C. This will become the default in a later release. Requirements: · Perl


HTML::Menu::Hierarchical Related Software