Navigation aus Redaxo 2.7 geht nicht mehr, kann jmd helfen?

Wie verwendet man Templates oder erstellt Navigationen und passt diese an.

Navigation aus Redaxo 2.7 geht nicht mehr, kann jmd helfen?

Beitragvon Pascal86 » 26. Sep 2005, 22:59

Hallo,
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&uuml;ck</a></td></tr>
</table>";
next($NAV);
}
echo $NAV2;

?>
Pascal86
 
Beiträge: 11
Registriert: 24. Aug 2004, 21:11

Beitragvon Thomas.Blum » 26. Sep 2005, 23:27

Hej,

es gibt einen Hinweis dazu im Forum. Verwende bitte beim nächsten mal die Suche zuerst.

Aber hier der Hinweis für dich:
$path = explode("-",$this->getValue("path"));

in
$path = explode("|",$this->getValue("path").$this->getValue("article_id")."|");


Ob das reicht kann ich nicht sagen. Das muss aber auf jedenfall geändert werden.

Thomas
blumbeet - web.studio - Dresden - 0351 217 6225
webbude - Blog über CSS.XHTML.REX
Ein Wunschzettel
Benutzeravatar
Thomas.Blum
Entwickler
 
Beiträge: 4670
Registriert: 24. Aug 2004, 21:11
Wohnort: Dresden

Beitragvon Pascal86 » 26. Sep 2005, 23:37

argh sorry, hab bis jetzt schon 100 artikel, 30 templates und 30 module kopiert und das ganze 2x weil ich mir das erste mal verhunzt hab und irgendwie seh ich vor lauter red bull und kaffee kaum noch die tastatur *g* aber thx werds gleich probieren *redaxosüchtig*
Pascal86
 
Beiträge: 11
Registriert: 24. Aug 2004, 21:11

Beitragvon Pascal86 » 26. Sep 2005, 23:42

nee klappt noch nich, aber ich glaub langsam ich werd das mal morgen nochmal in aller ruhe ausprobieren bzw. ne neue navigation einbinden, ist eh nicht mehr so zeitgemäß glaub ich wie die aussieht.

dank dir für die schnelle antwort :)
Pascal86
 
Beiträge: 11
Registriert: 24. Aug 2004, 21:11


Zurück zu Templates/Navigationen [R3]

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast