Code: Alles auswählen
$PATH = explode("|",$this->getValue("path"));
$article = OOArticle::getArticleById(REX_ARTICLE_ID);
if ($PATH[1] == 5 && !$article->isStartArticle())
{
$navTemplate = new rex_template(2);
include $navTemplate->getFile();
exit();
}
if ($PATH[1] == 6)
{
$navTemplate = new rex_template(3);
include $navTemplate->getFile();
exit();
}
Scheint an der Template Weiche zu liegen. In den beiden Templates wird er Inhalt mit:
Code: Alles auswählen
echo $this->getArticle();
Kann man das Problem umgehen?
Redaxo 4.7.1
PHP: 5.6.29-nmm1