ich habe länger nicht mit Contenido gearbeitet und bin ein bißchen raus, deshalb brauche ich mal eure Hilfe.
Bei einem Mandanten wird bisher eine geteilte Navigation eingesetzt (Hauptebene senkrecht, 2. Ebene horizontal). Das soll nun geändert werden, die Navi soll wie beim Beispielmandanten aufgebaut werden. Also habe ich das Modul "Navigation_Main" importiert und in das Template eingebunden, um es dann anzupassen.
Jetzt das Problem damit:
Steht das Modul so im Backend
Code: Alles auswählen
?php [... der ganze andere Code ...] ?
Code: Alles auswählen
?php [... der restliche Code ...] ?>
Code: Alles auswählen
<?php [... der restliche Code ...] ?
Wenn ich das Modul mit beiden spitzen Klammern ausstatte (am Anfang und Ende des Codes), dann wird das Modul als fehlerhaft ausgewiesen
und im Frontend bekomme ich nur noch diese FehlermeldungFehler in Modul. Fehlerquelle: eval()'d code on line 43
Hier noch der gesamte Modulcode:Parse error: syntax error, unexpected T_LNUMBER in /opt/lampp/htdocs/websites/kundenname/front_content.php(983) : eval()'d code on line 431
Code: Alles auswählen
<?php
/**
* $RCSfile$
*
* Description:
* Main Navigation, displays Navigation from a starting idcat down to the max. level set.
* For now (as of 2009-01-12) all subcategories are put inside one ul and are assigned css classes
* to distinguish level depth, first/last and active item property.
*
* Module requires two client settings:
* navigation_main_standard | start_idcat
* navigation_main_standard | level_depth
*
* To modify the behaviour of the module (e.g. style of URL, CSS classes, ...), you need to edit Contenido_NavMain_Util::loopCats
* @see {frontend}/includes/Util/Modules/Contenido_NavMain_Util.class.php
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG www.4fb.de
*
* {@internal
* created 2009-01-12
* }}
*
* $Id: Navigation_Standard.php 3444 2009-01-19 11:42:59Z rudi.bieller $
*/
if (!isset($db)) {
$db = new DB_Contenido();
}
if (!isset($tpl)) {
$tpl = new Template();
}
$tpl-reset();
cInclude('classes', 'Contenido_FrontendNavigation/Contenido_FrontendNavigation.class.php');
cInclude('frontend', 'includes/Util/Modules/Contenido_NavMain_Util.class.php');
$iStartIdcat = getEffectiveSetting('navigation', 'idcat-home', 16);
$iSelectedDepth = getEffectiveSetting('navigation', 'level-depth', 2);
if ($iStartIdcat 0) {
$oFeNav = new Contenido_FrontendNavigation($db, $cfg, $client, $lang, $cfgClient);
$oFeNav-setAuth($auth);
$oFeNav-setRootCat($iStartIdcat);
$oSubCategories = $oFeNav-getSubCategories($iStartIdcat, true, true, 1);
// see if there are any subcategories to display
if ($oSubCategories-count() 0) {
$aLevelInfo = array();
$aDepthInfo = array();
$aDepthInfo[0] = 0;
$aDepthInfo[1] = $iSelectedDepth;
foreach ($oSubCategories as $oSubCategory) {
Contenido_NavMain_Util::loopCats($oSubCategory, $oFeNav, $tpl, $cfg, $lang, $aLevelInfo, intval($idcat), $aDepthInfo);
}
$tpl-generate('templates/navigation_standard.html');
}
} else {
echo 'pNavigation not configured correctly./p';
}
?>
Code: Alles auswählen
$oFeNav = new Contenido_FrontendNavigation($db, $cfg, $client, $lang, $cfgClient);
Mandanteneinstellungen für die Navigation sind eingetragen und überprüft, Templates liegen bereit wie alle anderen nötigen Dateien.
In den anderen Modulen ist der Code komplett (also mit der öffnenden und abschließenden spitzen Klammer) und es gibt keine Probleme, weder mit Modul noch mit Frontend-Output.
Ich weiß nicht mehr, wo ich noch gucken soll ...