On Thu, 10 May 2001, Vidar Berg wrote:

> >> What code should I use to get the
> >> "You are here:  > Main > News"
> >> effect?

> > Given that you have an topic id $t:
> > while ($topic = mgd_get_topic($t)) {
> > $location = "> " . $topic->name . $location;
> $t = $topic->up
> > }
> > echo "You are here: $location"

> just couldnt make it work, what if I want to start with / Main, and the main
> page is an normal page, and thus got no topic-id. I want a location-display
> that walks thru the pages in the website.

try:

while ($page = mgd_get_page($p)) {
  $location = "> " . $page->name . $location;
  $p = $page->up
}
echo "You are here: $location";

Oh, and by the way, a little trick question, as a tribute to E.'QC'H.: Any
idea how this message reorderd itself back to it's natural top to bottom
order?

Cheers,

-- 
'The joy of my life is in Zion - Lauryn Hill'
Armand A. Verstappen * <[EMAIL PROTECTED]> *


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to