Home » HTML » HTML_Menu
Generates HTML menus from multidimensional hashes.
This package is unmaintained.
Download latest release 2.2.0 (there is a newer Composer installable version)
License: PHP License
Description
With the HTML_Menu class one can easily create and maintain a
navigation structure for websites, configuring it via a multidimensional
hash structure. Different modes for the HTML output are supported.
Documentation
Maintainers
- Ulf Wendel (uw) — lead, inactive
- Alexey Borzov (avb) — lead, active
Dependencies
Required
- PHP (>= 5.6.0)
- PEAR Installer (>= 1.9.0)
Optional
Releases
- 2.2.0 (stable, 2017-02-24)
Release notes
License: PHP License
QA release
* Drop PHP4 support
* Compatibility with PHP 7.1 - 2.1.4 (stable, 2007-05-18)
Release notes
License: PHP License
* Migration to package.xml 2.0
* Use proper header comment blocks, improved generated API documentation
* getCurrentUrl() also tries to use getenv() (bug #10242) - 2.1.3 (stable, 2006-10-08)
Release notes
License: PHP License
Fixed bug #8161: URL prefix was sometimes not prepended to URLs in menu of
type 'prevnext' - 2.1.2 (stable, 2006-06-02)
Release notes
License: PHP License
Fixed bug #5635: do not try to use non-scalar fields of menu node in str_replace()
call in Direct and DirectTree renderersImplemented request #2935: moved duplicate code into _prefixUrl() method
Implemented request #3237: added forceCurrentIndex() method
Implemented request #4391: a tree branch is expanded in 'tree' output if the
node contains 'forceExpand' field - 2.1.1 (stable, 2004-05-19)
Release notes
License: PHP License
Fixed #784 (Notice was raised if 'current' URL wasn't found in the menu).
- 2.1 (stable, 2004-01-18)
Release notes
License: PHP License
* Implemented #504, (Possibilty to set prefix for URLs, method setUrlPrefix())
* Added two new renderers: DirectTree and SigmaTree, that allow to render
menus of type 'tree' and 'sitemap' where level is shown by tags nesting
rather than indentation (Thanks to Uwe Mindrup for the idea and the
initial implementation of DirectTree renderer).
* If entries in the initial menu structure contain keys other than 'sub',
'url' and 'title' then renderers will try to assign them to the placeholders
with the same names in the template (Thanks to Didier Galland for the idea) - 2.0pl1 (stable, 2003-09-16)
Release notes
License: PHP License
Fix packaging: HTML_Template_Sigma should be optional dependency (thanks to Stephan Schmidt)
- 2.0 (stable, 2003-09-16)
Release notes
License: PHP License
HTML_Menu class does not contain output logic itself anymore. Output is now done via
external Renderer classes. This will cause BC break if you extended HTML_Menu to customize
its output.Additions and changes:
- Added Direct renderer: based on old code but it is possible to customize its output
- Added Sigma renderer that uses an instance of HTML_Template_Sigma for output
- Added Array renderer that creates an array of menu's visible entries
- Added usage examples
- Changed 'prevnext' menu generation, previous element is now the one closest to the current. - 1.0 (stable, 2003-08-25)
Release notes
License: PHP License
Legacy release: CVS code with some small cleanups applied.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #504 | Closed | Bug | 2003-12-30 | setUrlBase | |
| #784 | Closed | Bug | 2004-02-18 | PHP Notice if no url prefix matches a menu entry | |
| #2484 | Bogus | Bug | 2004-10-08 | get() ignores previous render() | |
| #2710 | Wont fix | Req | 2004-11-07 | {desc} is not delete | |
| #2815 | No Feedback | Bug | 2004-11-23 | _findNodeType fails with forced URL | |
| #2935 | Closed | Req | 2004-12-09 | combine duplicate code into _prefixUrl method | |
| #3029 | Closed | Bug | 2004-12-26 | Notice in _buildUrlMap when url is missing | |
| #3237 | Closed | Req | 2005-01-19 | Add ForceCurrentIndex method | |
| #4391 | Closed | Req | 2005-05-19 | I would like to be able to force expansion of part of a tree. | |
| #4404 | Wont fix | Req | 2005-05-22 | serialization of HTML_Menu | |
| #4703 | Wont fix | Req | 2005-06-29 | Row Menus need addSeparator method | |
| #5352 | Wont fix | Req | 2005-09-09 | Menu values never sent through htmlspecialchars() | |
| #5635 | Closed | Bug | 2005-10-09 | Cannot include custom array in a menu entry | |
| #6254 | Wont fix | Req | 2005-12-15 | Method to get the currently active node | |
| #6255 | Wont fix | Req | 2005-12-15 | Use references to the menu instead of copying the _menu object | |
| #6256 | Wont fix | Req | 2005-12-15 | add list renderer | |
| #6394 | Wont fix | Bug | 2006-01-02 | Case sensitivity in getPath() and _buildUrlMap() | |
| #7401 | Wont fix | Req | 2.1.1 | 2006-04-15 | Ability to hide menu entries |
| #8161 | Closed | Bug | 2.1.2 | 2006-07-07 | error in 'prevnext' generation with prefixed url |
| #9961 | Wont fix | Req | 2.1.3 | 2007-01-28 | Documentation on how to write custom renderer |
| #10242 | Closed | Bug | 2.1.3 | 2007-03-02 | getCurrentURL should also use getenv() |
| #10243 | No Feedback | Req | 2.1.3 | 2007-03-02 | Option to strip "index.php" |
| #10821 | Wont fix | Req | 2.1.3 | 2007-04-24 | target attribute on links |
| #10828 | Wont fix | Req | 2.1.3 | 2007-04-24 | DirectRenderer default value: no table borders |
| #12205 | Duplicate | Bug | 2.1.4 | 2007-10-08 | html entities not converted in output |
| #13198 | Wont fix | Req | 2.1.4 | 2008-02-25 | PHP5 strict compatibility |
| #13866 | Wont fix | Req | 2008-05-09 | Optional support for nested indenting | |
| #16037 | Bogus | Req | 2.1.4 | 2009-03-16 | Make it possible to output all menu items at once |