Seite 1 von 1

Fehler in der AMR Meta Navigation?

Verfasst: Fr 25. Jan 2013, 03:07
von contenidoAmateur
Hallo,

ich bekomme in der Meta Navigation hinter.html noch folgendes angezeigt: ?a=44&level=0 Warum? Die Anpassung des Moduls habe ich vorgenommen..

Danke :)

Re: Fehler in der AMR Meta Navigation?

Verfasst: Fr 25. Jan 2013, 12:09
von xmurrix
...ich bekomme in der Meta Navigation hinter.html noch folgendes angezeigt: ?a=44&level=0 Warum? Die Anpassung des Moduls habe ich vorgenommen...
Schau dir nochmal die Beschreibung zur der Anpassung genau an. Manchmal sind es in einem Modul mehrere Stellen, die geändert werden müssen und du hast vielleicht nur eines davon geändert...

Re: Fehler in der AMR Meta Navigation?

Verfasst: Fr 25. Jan 2013, 22:52
von contenidoAmateur
Ich hab leider nichts gefunden was ich hätte noch anpassen sollen :/ Das hatte ich ja vorher auch schon überprüft...

<?php
/**
* $RCSfile$
*
* Description: Meta Navigation on bottom of page
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/

// get start idcat
$iIdcatStart = getEffectiveSetting('navigation', 'idcat-meta', 2);

//check if there is a template instance
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}

// reset template object
$tpl->reset();

// build navigation
try {
$oFeNav = new Contenido_FrontendNavigation($db, $cfg, $client, $lang, $cfgClient);
$oFeNav->setAuth($auth);
$oContenidoCategories = $oFeNav->getSubCategories($iIdcatStart, true);
if ($oContenidoCategories->count() > 0) {
foreach ($oContenidoCategories as $oContenidoCategory) {
// this is just for sample client - modify to your needs!
if ($aCfg['url_builder']['name'] == 'front_content' || $aCfg['url_builder']['name'] == 'MR') {
$aParams = array('lang' => $lang, 'idcat' => $oContenidoCategory->getIdCat());
} else {
$aParams = array('a' => $oContenidoCategory->getIdCat(),
'idcat' => $oContenidoCategory->getIdCat(), // needed to build category path
'lang' => $lang, // needed to build category path
'level' => 0); // needed to build category path
}
try {
$tpl->set('d', 'url', Contenido_Url::getInstance()->build($aParams));
} catch (InvalidArgumentException $e) {
$tpl->set('d', 'url', 'front_content.php?idcat='.$oContenidoCategory->getIdCat());
}
$tpl->set('d', 'title', $oContenidoCategory->getCategoryLanguage()->getName());
$tpl->set('d', 'label', $oContenidoCategory->getCategoryLanguage()->getName());
$tpl->next();
}
$sItems = $tpl->generate('templates/navigation_meta_item.html', true, false);
$tpl->reset();
$tpl->set('s', 'items', $sItems);
$tpl->generate('templates/navigation_meta_container.html');
}
} catch (Exception $e) {
echo 'Shit happens: ' . $e->getMessage() . ': ' . $e->getFile() . ' at line '.$e->getLine() . ' ('.$e->getTraceAsString().')';
}
?>

Re: Fehler in der AMR Meta Navigation?

Verfasst: Fr 25. Jan 2013, 23:38
von xmurrix
Bitte verwende doch das nächste Mal BBCode, das erleichtert einem das Lesen des Posts...

Wo kommt bei dir die Variable $aCfg, diese Variable gibt es in der Form nicht. Vermutlich hast du hier etwas von einer anderen Stelle kopiert und es in diesem Modul verwendet.

Es sollte nicht

Code: Alles auswählen

if ($aCfg['url_builder']['name'] == 'front_content' || $aCfg['url_builder']['name'] == 'MR') {
lauten, sondern vermutlich

Code: Alles auswählen

if ($cfg['url_builder']['name'] == 'front_content' || $cfg['url_builder']['name'] == 'MR') {
Gruß
xmurrix

Re: Fehler in der AMR Meta Navigation?

Verfasst: Fr 25. Jan 2013, 23:47
von contenidoAmateur
Oh entschuldige bitte, bin da noch nicht so wirklich drann gewöhnt. Du hast mich gerade auf eine Idee gemacht. ich hab nicht immer das was bei der Dokumentation zu dem jeweiligen Modul stand geändert, sondern das erste kopiert und bei allen eingefügt.. o.O