ich habe aufmerksam das Forum durchsucht, aber ich finde meinen Fehler einfach nicht. Das Problem: die MetaNavigation wird nicht angezeigt!
Fehlerquellen von http://forum.contenido.org/viewtopic.php?t=21804 kann ich ausschließen, und weil der Thread gelöst im Titel hat, mach ich boeser weise einen neuen auf:
Layout:
Code: Alles auswählen
...
<container id="75" name="Navigation_Meta" types="navigation" mode="fixed" default="Navigation_Meta">Navigation_Meta</container>
...
Name: Navigation_Meta
Typ: navigation
Code: Alles auswählen
<?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$
*/
// include Contenido_FrontendNavigation class
cInclude('classes', 'Contenido_FrontendNavigation/Contenido_FrontendNavigation.class.php');
// get start idcat
$iIdcatStart = getEffectiveSetting('navigation', 'idcat-meta', 75);
//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);
$oContenidoCategories = $oFeNav->getSubCategories($iIdcatStart, true);
if ($oContenidoCategories->count() > 0) {
foreach ($oContenidoCategories as $oContenidoCategory) {
$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().')';
}
?>
Code: Alles auswählen
Navigation_Meta (Container 75)
navigation_meta_container.html:
Code: Alles auswählen
<ul id="metaNavigation">
{items}
</ul>
Code: Alles auswählen
<!-- BEGIN:BLOCK -->
<li><a href="{url}" title="{title}">{label}</a></li>
<!-- END:BLOCK -->
Ich hab sogar alles nochmal aus dem Beispielmandanten rüberkopiert, aber es klappt einfach nichts?! (Ich benutze Contenido 4.8.8.)
Würde mich über eine Antwort sehr Freuen.
Herzlichen Dank
Zweistein