In various cases, a dynamic menu is needed for PHPNuke sites, a replacement of the Modules block, but with a facility to generate the menu entries dynamically, according to conditions like the Category chosen by the user. In this document I describe the adaptation of Treemenu (a dynamic menu written as a PHP class) to PHPNuke for the creation of a dynamic menu block suitable for the above needs. The administrator needs only edit a plain text file (sitemap.txt) to reflect the required tree structure. The (sub)tree nodes expand and collapse through user interaction very intuitively. The block itself is implemented through the use of the PHP output buffer functions ob_start, ob_get_contents and ob_end_clean.
Copyright © 2003 Chris Karakas. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license can be found at the Free Software Foundation.
| Next | ||
| Introduction |