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
Fehler in der AMR Meta Navigation?
Re: Fehler in der AMR Meta Navigation?
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......ich bekomme in der Meta Navigation hinter.html noch folgendes angezeigt: ?a=44&level=0 Warum? Die Anpassung des Moduls habe ich vorgenommen...
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.
Re: Fehler in der AMR Meta Navigation?
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().')';
}
?>
<?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?
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
lauten, sondern vermutlich
Gruß
xmurrix
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') {
Code: Alles auswählen
if ($cfg['url_builder']['name'] == 'front_content' || $cfg['url_builder']['name'] == 'MR') {
xmurrix
CONTENIDO Downloads: CONTENIDO 4.10.1
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.
CONTENIDO Links: Dokumentationsportal, FAQ, API-Dokumentation
CONTENIDO @ Github: CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.
Re: Fehler in der AMR Meta Navigation?
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