HTML_Menu problem with special URL's
| From: | Marcus Merz | Date: | Sat, 15 May 2004 21:22:32 +0000 |
| Subject: | HTML_Menu problem with special URL's | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-12519@lists.php.net to get a copy of this message | ||
First, Alexey (and Ulf where i found Menu 3 for the first time), thank you
so much for this excellent piece of software. I am using it for more than a
year now and customised it to my needs.
Nevertheless (now using Pear HTML_Menu 2.1) i encountered a problem which i
can not solve myself. I have a menu that looks like this:
$data = array(
'Presse0000' => array(
"class" => "newsmenu",
"url" => "/",
"anchor" => "",
"target" => "",
"title" => "Home"
),
'Presse0001' => array(
"class" => "newsmenu",
"url" => "/presse/schlagzeilen.html?start=0&count=5",
"anchor" => "",
"target" => "",
"title" => "Schlag-<br>zeilen"
),
'Presse0002' => array(
"class" => "newsmenu",
"url" => "/presse/schlagzeilen.html?start=5&count=5",
"anchor" => "",
"target" => "",
"title" => "Schlag-<br>zeilen: Seite 1"
),
);
In this case i use the 'prevnext' style to build a menue. I use "var
$_urlEnvVar = 'REQUEST_URI';" (also in function HTML_Menu) instead of
PHP_SELF because i use mod_rewrite.
When the current URL is "/presse/schlagzeilen.html?start=0&count=5" the
previous URL shown in the menue is "/" which is correct but the next URL
shown is not "/presse/schlagzeilen.html?start=5&count=5" as it should
but again "/presse/schlagzeilen.html?start=0&count=5".
As soon as i change the url in 'Presse0002' to, lets say
"/presse/schlagzeilen_test.html?start=5&count=5", it works as expected
using 'prevnext' but i can not really live with that. Furthermore, these
URL's are correcty recognized when using $menu_type 'tree' or 'sitemap'.
The current URL is correctly recognized but (to my limited understanding)
the node url does not seem to be recognized when i try to use $menu_type
'prevnext' in this case.
I hope, somebody of you can show me a way how to use the above mentioned
URL's from the menu hash with $menu_type 'prevnext' successfully.
Thanks in advance and best regards,
Marcus Merz