[phpBB Debug] PHP Warning: in file [ROOT]/ext/tas2580/seourls/event/listener.php on line 213: Undefined array key "FORUM_NAME"
Navigation aus Redaxo 2.7 geht nicht mehr, kann jmd helfen? - REDAXO Forum
Hallo,

Wir haben in letzter Zeit festgestellt, dass die Kommunikation via Slack viel schneller und zielführender ist als ein Beitrag im Forum. Aufgrund der neuen und besseren Möglichkeiten der Kommunikation haben wir uns entschlossen das Forum nur noch als Archiv zur Verfügung zu stellen. Somit bleibt es weiterhin möglich hier nach Lösungen zu suchen. Neue Beiträge können nicht mehr erstellt werden.

Wir empfehlen, für deine Fragen/Probleme Slack zu nutzen. Dort sind viele kompetente Benutzer aktiv und beantworten jegliche Fragen, gerne auch von REDAXO-Anfängern! Slack wird von uns sehr intensiv und meistens "rund um die Uhr" benutzt :-)
Selbst einladen kannst Du dich hier: https://redaxo.org/slack/
Pascal86
Beiträge: 11
Registriert: 24. Aug 2004, 22:11

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

26. Sep 2005, 23: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;

?>

Benutzeravatar
Thomas.Blum
Entwickler
Beiträge: 5063
Registriert: 24. Aug 2004, 22:11
Wohnort: Dresden
Kontaktdaten: Website

27. Sep 2005, 00: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

Pascal86
Beiträge: 11
Registriert: 24. Aug 2004, 22:11

27. Sep 2005, 00: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, 22:11

27. Sep 2005, 00: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 :)

Zurück zu „Allgemeines [R3]“