Hallo Community,
gibts schon ne kleine Bauanleitung zur rex_navigation::factory() der redaxo 4.2?
Danke, wäre nett.
Grüße Falko
Alex hat geschrieben:Ja, wäre eine Idee. Würd's auch selber machen, wenn ich das Passwort bekäme.
Thomas.Blum hat geschrieben:schau mal bitte auf die Startseite des Wikis.
vg Thomas
Richard.Laing hat geschrieben:Wenn ich das richtig verstanden habe ist das von Alex schon die komplettanleitung...
damit sollte alles machbar sein RICHTIG?
gruß richy
<div id="navi1">
<?php
// navigation generator erstellen
$nav = rex_navigation::factory();
$category_id = 0; // Beginne in der Wurzelkategorie
$depth = 3; // 3 Ebene Tief
$open = FALSE; // Nicht aufklappen (hier egal da nur 1 Ebene)
$ignore_offlines = TRUE; // Offline ausblenden
echo $nav->get($category_id, $depth, $open, $ignore_offlines);
?></div>
$nav_h = rex_navigation::factory();
$nav_h->show(0,1,FALSE,TRUE);
$PATH = explode("|",$this->getValue("path").$this->getValue("article_id")."|");
$nav_v = rex_navigation::factory();
$nav_v->show($PATH[1],2,FALSE,TRUE); Catchable fatal error: Object of class rex_navigation could not be converted to string in /var/.../include/classes/class.rex_article.inc.php(700) : eval()'d code on line 107$nav = rex_navigation::factory();
$category_id = $this->getValue('article_id'); // Beginne in der Wurzelkategorie
$depth = 3; // 3 Ebene Tief
$open = FALSE; // Nicht aufklappen
$ignore_offlines = TRUE; // Offline ausblenden
echo $nav->get($category_id, $depth, $open, $ignore_offlines);
Zurück zu Templates/Navigationen [R4]
Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste