|
|||
|
Hallo Leute,
weiß einer/eine von euch wie ich den letzten Link im navtrail anders formatieren kann? z.B.: Startseite -> Katalog -> Kategorie Habe leider in google und im Forum nichts dazu gefunden. Gruß |
|
|||
|
Danke hubbabubba,
es ist zwar nicht die Lösung des Problems, aber gut. So weiß ich wo ich suchen muss. Für alle die das selbe Problem haben, hier meine Lösung dafür: Suche in der Datei "includes/classes/breadcrumb.php" nach folgendem: Code:
function trail($separator = ' - ') {
$trail_string = '';
for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) {
if (isset($this->_trail[$i]['link']) && xtc_not_null($this->_trail[$i]['link'])) {
$trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation">' . $this->_trail[$i]['title'] . '</a>';
} else {
$trail_string .= $this->_trail[$i]['title'];
}
if (($i+1) < $n) $trail_string .= $separator;
}
return $trail_string;
}
Code:
function trail($separator = ' - ') {
$trail_string = '';
for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) {
if (isset($this->_trail[$i]['link']) && xtc_not_null($this->_trail[$i]['link'])) {
if (($i+1) == $n) {
$trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation_end">' . $this->_trail[$i]['title'] . '</a>';
} else {
$trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation">' . $this->_trail[$i]['title'] . '</a>';
}
} else {
$trail_string .= $this->_trail[$i]['title'];
}
if (($i+1) < $n) $trail_string .= $separator;
}
return $trail_string;
}
Gruß |
![]() |
| Lesezeichen |
| Stichworte |
| formatierung, navtrail |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Navtrail und Kategorieanzeige | HerrMaier | Installation und Konfiguration | 1 | 22.07.2008 10:25 |
| Änderung der Formatierung im Bestellvorgang | Wasserpfeifen1986 | Installation und Konfiguration | 1 | 21.07.2008 12:34 |
| Navtrail Formatierung ändern | bjoernmuehle | Template System | 3 | 28.02.2008 13:07 |
| CSV Formatierung ändern | P4N!C rOOm | Shopbereich | 8 | 08.01.2007 16:40 |