Code: Alles auswählen
<?php
$P = explode("|",$this->getValue("path").$this->getValue("article_id")."|");
$subnavigation = rex_navigation::factory();
echo $subnavigation->get($P[1],1,FALSE,TRUE);
?>
So funktioniert es nicht (Navi wird angezeigt, falls keine Navi, ist nichts da):
Code: Alles auswählen
<?php
$P = explode("|",$this->getValue("path").$this->getValue("article_id")."|");
$subnavigation = rex_navigation::factory();
if ($subnavigation !='') {
echo $subnavigation->get($P[1],1,FALSE,TRUE);
} else {
echo 'bla bla bla';
}
?>
Vielen Dank!