Die Sitemap wird nicht angezeigt, wenn sie als letztes Element im Baum hängt, schiebe ich sie eine Stufe höher, dann ist sie wieder da. Schiebe ich den Artikel wieder runter, ist sie wieder weg.
Hier ist der SQL Abfragecode.
Code: Alles auswählen
<?php
include_once($cfg["path"]["contenido"].$cfg["path"]["includes"]."functions.con.php");
$catStart = "CMS_VALUE[0]";
if ($catStart != "") {
$catIds = conDeeperCategoriesArray($catStart);
// Ausgabe der Liste
echo '<ul id="nav-obre">';
// <table width="190" height="27" border="0" cellpadding="0" cellspacing="0">';
if ( is_array($catIds) ) {
foreach($catIds as $key=>$val) {
// Ersten Eintrag ueberspringen, weil das der Menupunkt selbst ist
// und nicht angezeigt werden soll.
if ($key != 0) {
// Ersten Eintrag ueberspringen, weil das der Menupunkt selbst ist
// und nicht angezeigt werden soll.
if ($key != 0) {
$sql = "SELECT CAT.idcat AS idcat, name FROM ".
$cfg["tab"]["cat"]." AS CAT, ".
$cfg["tab"]["cat_lang"]." AS CATLANG
WHERE CAT.idcat = ".$val."
AND CAT.idcat = CATLANG.idcat
AND CATLANG.idlang = '$lang'
AND visible=1 "
; // AND C.visible=1 " neu eingefügt (FB)
$db->query($sql);
while ( $db->next_record() ) {
echo '
<li>
<a class="obre" href="front_content.php?idcat='.$db->f("idcat").'">'.$db->f("name").'</a>
</li>
';
} // end while
} // if
} // end foreach
} // end if (is_array)
echo '<ul>
';
}
?>
Ist das ein Contenido Fehler beim Umhängen oder ein Fehler in der Abfrage.
Gruß
Florian
_________________
Contenido 4.4.4