Hi,

With the help of Bergie I got the breadcrumb function working correctly on my test 
page (using a subpage with different layout). I do have a rather "funny" looking link 
when viewing the page in IE 6 SP1 on Win XP.

it does look correctly like this:
http://www.rename.org/IP/Internationale-Politik/Buchkritik.html
working on Mozilla (Win and Mac),IE 5.1 on Mac and Opera 6.05

On the mentioned IE 6 system however i get the following:
http://www.rename.org/./IP/./Internationale-Politik/Buchkritik.html
                                    ^ ^  ^  

I changed the breadcrumb function of the Aegir sample site to look like this:
<?php
// Generate a "breadcrumb trail" of location on the site
// from the $basearray results of the URL parser

  while (list($key,$val) = each($basearray)) {
    if ($val->__table__ == 'topic') {
      if ($val->id == $root_topic->id) {
        $uri = $site[uri];        
        echo "<a href=\"$uri\" class=\"breadcrumb\">Home</a>\n";
      } else {
        $uri3 = $site[uri];     
        $uri2 = "/IP/";
       $safename = rawurlencode($val->name);
        $uri = $uri."$safename/";
        echo " &gt; <a href=\"$uri3.$uri2.$uri\" class=\"breadcrumb\">$val-
>name</a>\n";
      }
    }
  }
 if ($article) {
     $uri3 = $site[uri];     
     $uri2 = "/IP/";
     $articlename = rawurlencode($article->name);
     $uri = $uri."$articlename".".html";
     echo "&gt; <a href=\"$uri3.$uri2.$uri\" 
class=\"breadcrumb\">$article->title</a>\n";
   }
   reset($basearray);

 ?>

Question: i guess this weird behavior on IE must be related to my changes of the 
function. Can anybody see the reason for this behavior?

Greetings
Andreas

Andreas Alvarez
Deutsche Gesellschaft fuer Auswaertige Politik e.V.
Koordinator weltpolitik.net
http://www.weltpolitik.net
Tel.: +49 30 254231-43
[EMAIL PROTECTED]


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

Reply via email to