> Hi,
>
>> How do I make a Where am I bar ? How to plan and realize it ?
>> Is someone out there who can help with that ?
>
> I asked the same wuestion a week ago. Here is what I put together (due
> to no response to my mail). This is a really basic location bar and i'd
> like to see some of the professionals give me some improvements. There
> are also no links to the shown location.
How you solve this depends largely on how you organize your site. Where
I've used this I organized my site around the content (topics/articles),
with the pages having mostly only logic to display them. An active
page '/article', would do something like:
<?
$art = mgd_get_article($argv[0]);
$where = $art->title;
$up = mgd_get_topic($art->topic);
while ($up) {
$where = '<A HREF="/topic/' . $up->id . '">' . $up->title . '</A> - ';
$up = mgd_get_topic($up->up);
}
echo $where;
?>
Lots of error handling code missing, but this is the gist of it. I would
then do largely the same for '/topic'.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]