MetaNavigation wird nicht angezeigt ungelöst.

Gesperrt
AWXzweistein
Beiträge: 2
Registriert: Mo 27. Okt 2008, 15:41
Kontaktdaten:

MetaNavigation wird nicht angezeigt ungelöst.

Beitrag von AWXzweistein »

Hi,
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>
...
Modul:
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().')';
}
?>
Template:

Code: Alles auswählen

Navigation_Meta (Container 75)


navigation_meta_container.html:

Code: Alles auswählen

<ul id="metaNavigation">
                                {items}
                            </ul>
navigation_meta_item.html:

Code: Alles auswählen

<!-- BEGIN:BLOCK -->
                                <li><a href="{url}" title="{title}">{label}</a></li>
<!-- END:BLOCK -->
hab ich hier schon was falsch, oder kann es noch eine Fehlerquelle geben?
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
emergence
Beiträge: 10653
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence »

Code: Alles auswählen

$iIdcatStart = getEffectiveSetting('navigation', 'idcat-meta', 75);
sicher das da 75 stimmt... ?

wie lautet die idcat der katgeorie die als meta navigation genutzt wird ?
dieser wert wäre anstelle der 75 einzutragen...
client/system setting wäre auch eine option...
*** make your own tools (wishlist :: thx)
Gesperrt