RE: [PEAR] Html_menu - prevnext mode
| From: | Mike C | Date: | Thu, 16 Sep 2004 17:43:18 +0000 |
| Subject: | RE: [PEAR] Html_menu - prevnext mode | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14550@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Mike C [mailto:mikeatwork@ukonline.co.uk]
>
>
> When I call show() to get the HTML to display, it's showing
> the initial 'prev' as 'Chapter 1 (1052-1070) Income tax and
> corporation' and current item as 'Chapter 1 (1052-1070)
> Income tax and corporation' and the 'next'
> item as '1052 Penalties for failure to make certain returns,
> etc.' - why is the previous and current items the same? Can I
> stop previous item being the same as the current item somehow?
Ah, in reply to my own question I found line 410 of HTML/Menu.php had a
comment which answered the question:-
// WARNING: if there's no previous take the first menu entry - you might not
like this rule!
This "warning" applies to both the items I queried about.
Has anybody hacked this class to change this functionality already?
Regards,
- Mike C.