Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.2.0

Request #4391 I would like to be able to force expansion of part of a tree.
Submitted: 2005-05-20 00:26 UTC
From: prices at dflytech dot com Assigned: avb
Status: Closed Package: HTML_Menu
PHP Version: 5.0.4 OS: FreeBSD 5.3
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 3 + 1 = ?

 
 [2005-05-20 00:26 UTC] prices at dflytech dot com
Description: ------------ I would like to be able to force expansion of part of a tree. I have headings in my menu that don't have links and the sub menu needs to be always expanded. Reproduce code: --------------- in: function _renderTree($menu, $level = 0) ...SNIP... // follow the subtree if the active menu item is in it or if we want the full menu if (('sitemap' == $this->_menuType || HTML_MENU_ENTRY_INACTIVE != $type || $node['forceExpand']) && isset($node['sub'])) { $this->_renderTree($node['sub'], $level + 1); ...SNIP... } I added the "|| $node['forceExpand']" to force the expansion. That works well for me.

Comments

 [2006-06-02 18:05 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!