Hatte in Redaxo 2.7 bisher diese Navigation laufen, und bisher hat Sie auch keine probleme bereitet (siehe online -> www.my-wow.com)
Code: Alles auswählen
<?
// USER STATUS FUER PERSOENLICHE NAVI
$utype_id = 1;
if ($FORM[USR]) $utype_id = $FORM[USER]->getValue("singlestatus");
// PFAD AUSLESEN
$cat_id = $this->getValue("category_id");
$path = explode("-",$this->getValue("path"));
$showpath = "/ <a href=index.php?article_id=8 class=white>Home</a>";
$cat1 = current($path)+0;
next($path);
$cat2 = current($path)+0;
next($path);
$cat3 = current($path)+0;
// 2. NAVI
$NAV2 = "";
$cat_id = $cat2;
@include $REX[INCLUDE_PATH]."/generated/categories/$cat_id.list.category";
$NAV = $REX[RECAT][$cat_id];
for ($i=0;$i<count($NAV);$i++)
{
$id = current($NAV);
$aid = $REX[CAT][$id][article_id];
$name = $REX[CAT][$id][name];
if ($i==0) $NAV2 .= "<table width=100% cellpadding=0 cellspacing=0 border=0>";
@include $REX[INCLUDE_PATH]."/generated/articles/$aid.article";
$type_id = $REX[ART][$aid][type_id];
if ($aid == 1) $type_id = 1; // HOME PAGE AUSNAHME
$CST = true;
if ($type_id>$utype_id) $CST = false;
if ($cat3==$id and $REX[CAT][$id][status]==1 and $CST)
{
$NAV2 .= "<tr><td width=\"20\" align=\"right\" style=\"padding-left:12px;\" class=\"nav\"><img src=$REX[HTDOCS_PATH]files/navipfeil.gif></td><td width=\"144\" align=\"left\" style=\"padding-left:6px;\" class=\"nav\">"."<a href=index.php?article_id=$aid class=subnav>$name</a></td></tr>";
}elseif ($REX[CAT][$id][status]==1 and $CST)
{
if ($name == "")
{
$NAV2 .= "<tr onmouseover=this.style.background='#F0F0F0'; onmouseout=this.style.background='transparent'><td align=\"right\" style=\"padding-left:12px;\" width=\"20\" class=\"nav\"><img src=$REX[HTDOCS_PATH]files/navipfeil.gif></td><td width=\"144\" align=\"left\" style=\"padding-left:6px;\">"."<a href=index.php?article_id=$aid class=\"subnav\">$name</a></td></tr>";
}else
{
$NAV2 .= "<tr onmouseover=this.style.background='#F0F0F0'; onmouseout=this.style.background='transparent'><td align=\"right\" style=\"padding-left:12px;\" width=\"20\" class=\"nav\"><img src=$REX[HTDOCS_PATH]files/navipfeil.gif></td><td width=\"144\" align=\"left\" style=\"padding-left:6px;\">"."<a href=index.php?article_id=$aid class=\"subnav\">$name</a></td></tr>";
}
}
if (($i+1)==count($NAV)) $NAV2 .= "<tr onmouseover=this.style.background='#F0F0F0'; onmouseout=this.style.background='transparent'><td align=\"right\" style=\"padding-left:12px;\" width=\"20\" class=\"nav\"><img src=$REX[HTDOCS_PATH]files/navipfeil_back.gif></td><td width=\"144\" align=\"left\" style=\"padding-left:6px;\">"."<a href=javascript:history.back(); class=\"subnav\" style=\"color:#2954C3\">zurück</a></td></tr>
</table>";
next($NAV);
}
echo $NAV2;
?>