Ich verwende die gesplittete Navi von Kummer. http://contenido.org/forum/viewtopic.ph ... hp&start=0
Nun habe ich das Problem, dass ich in der Navigation einen Zeilenumbruch erzwingen möchte. Wollte das gerne mit Leerzeichen machen, aber die werden mir ja gelöscht.
Außerdem habe ich versucht mit Hilfe der Datei functions.api.string.php den String zu beschneiden, aber hier wird mir der abgeschnittene Teil nicht mehr ausgegeben.
Code: Alles auswählen
function showNavigation($type, $next = -1) {
static $first;
static $output = false;
if ($next == 0) {
return false;
}
if ($next == -1) {
echo $this->before;
$next = $this->firstId[$type];
$first = true;
}
$parentId = $this->id[$type];
$link = 'front_content.php?idcat='.$next;
$brechen = $this->navigationTree[$parentId][$next]['name'];
$brechen2 = capiStrTrimAfterWord ($brechen, 15);
if ($this->navigationTree[$parentId][$next]['visible'] == 1 && $this->navigationTree[$parentId][$next]['idlang'] == $this->lang) {
if (!$first) {
echo $this->between;
}
if ($this->isSelected($next)) {
echo $this->beforeSelected;
} else {
echo $this->beforeEach;
}
echo '<a href="'.$link.'">'.$brechen2.'</a>';
$first = false;
$output = true;
} elseif (!$output && $this->navigationTree[$parentId][$next]['postid'] == 1) {
/*
* Die Navigation enthält nichts.
*/
echo ' dd';
}
$this->showNavigation($type, $this->navigationTree[$parentId][$next]['postid']);
}
Meine Prog-Kenntnisse sind jetzt nicht der Hit. Wäre schön, wenn mir da jemand helfen würde.
Gruß Deddy