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

Bug #8161 error in 'prevnext' generation with prefixed url
Submitted: 2006-07-07 13:35 UTC
From: worldclubs at post dot cz Assigned: avb
Status: Closed Package: HTML_Menu (version 2.1.2)
PHP Version: 5.0.0 OS: Win
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 : 15 - 12 = ?

 
 [2006-07-07 13:35 UTC] worldclubs at post dot cz (mike)
Description: ------------ Plese test with your test data in pear package and with prefixed url. The prefixed url is not shown in hrefs of 'prevnext' menu type in menu item 2.1 and 1 .. << Menu item 1.3.2 ^ Menu item 1 ^ Menu item 2.1 >> if there is no prefix its looks correct .. Test script: --------------- $data = array( 1 => array( 'title' => 'Menu item 1', 'url' => '/item1.php', 'desc' => 'a special element', 'sub' => array( 11 => array('title' => 'Menu item 1.1', 'url' => '/item1.1.php', 'desc' => 'nothing special here'), 12 => array( 'title' => 'Menu item 1.2', 'url' => '/item1.2.php', 'desc' => 'a very special element', 'sub' => array( 121 => array('title' => 'Menu item 1.2.1', 'url' => '/item1.2.1.php'), 122 => array( 'title' => 'Menu item 1.2.2', 'url' => '/item1.2.2.php', 'desc' => 'a really very special element', 'sub' => array( 1221 => array('title' => 'Menu item 1.2.2.1', 'url' => '/item1.2.2.1.php'), 1222 => array('title' => 'Menu item 1.2.2.2', 'url' => '/item1.2.2.2.php') ) ), 123 => array('title' => 'Menu item 1.2.3', 'url' => '/item1.2.3.php'), ) ), 13 => array( 'title' => 'Menu item 1.3', 'url' => '/item1.3.php', 'sub' => array( 131 => array('title' => 'Menu item 1.3.1', 'url' => '/item1.3.1.php'), 132 => array('title' => 'Menu item 1.3.2', 'url' => '/item1.3.2.php'), ) ) ) ), 2 => array( 'title' => 'Menu item 2', 'url' => '/item2.php', 'sub' => array( 21 => array('title' => 'Menu item 2.1', 'url' => '/item2.1.php'), 22 => array( 'title' => 'Menu item 2.2', 'url' => '/item2.2.php', 'sub' => array( 221 => array('title' => 'Menu item 2.2.1', 'url' => '/item2.2.1.php') ) ) ) ), 3 => array('title' => 'Menu item 3', 'url' => '/item3.php'), 4 => array( 'title' => 'Menu item 4', 'url' => '/item4.php', 'sub' => array( 41 => array('title' => 'Menu item 4.1', 'url' => '/item4.1.php'), 42 => array('title' => 'Menu item 4.2', 'url' => '/item4.2.php'), 43 => array('title' => 'Menu item 4.3', 'url' => '/item4.3.php') ) ) ); $menu =& new HTML_Menu($data2); //i using this type od urls !! can be a reason ? $menu->forceCurrentUrl(/myweb/item2.php); //for test $menu->setUrlPrefix('/myweb/'); $menu->show('prevnext');

Comments

 [2006-07-07 14:53 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!
 [2006-10-08 15:27 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!