[PHPLIB-DEV] Re: menu.inc cvs commit to add $this->title From: Padraic Renaghan (padraic <email protected>)
Date: 11/13/99

> From: padraic
> Date: Sat Nov 13 22:48:36 1999
> Modified files:
> php-lib/php/menu.inc
> + unset($this->title);
> + while(list($a, $b) = each($r)) {
> + if ($this->title) {
> + $this->title .= " -> ";
> + }
> + $this->title .= $this->item["$b"]["title"];
> + }

Whoops! I didn't actually mean to commit the menu.inc change - I
really only wanted to session.inc cache stuff to go in. I can reverse
my changes to menu.inc if folks would like, or I can leave them in
(with cleanup, documentation, and CHANGES notation of course).

What I am doing here is using the hierarchy of the menu to build my
page titles for me. The page titles then nicely show exactly where
someone is in the hierarchy.

If we keep the change, I'll make the title separator (->) a class
variable so you can choose your own.

-- 
Padraic Renaghan /pad-rik ren-a-han/ 
<padraic <email protected>>  http://renaghan.com/pcr/
   bookmarker - web based bookmark management GPL software
   phpop - web based POP mail reader GPL software
   clicked and the read - ezine

- PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in the body, not the subject, of your message.