Verfasst: Mi 9. Nov 2005, 12:29
Das Modul einbinden?
Das Diskussionsforum zum Open Source Content Management System
https://forum.contenido.org/
Also ich benutze für mehrere Unterseiten das selbe Template, wenn ich dann bei den Kategorien die Einstellungen für die Artikelliste treffe wird es mir trotzdem nicht auf den Unterseiten angezeigt.jost hat geschrieben:Das Modul einbinden?
Code: Alles auswählen
} // end while
} // end if Code: Alles auswählen
} else {
echo mi18n("Nothing here");
}// end while
} // end if Ja komisch, da muss ich igendetwas verbockt haben. Es geht jetzt.HerrB hat geschrieben:Muss ich jetzt nicht verstehen, oder? Es ist genau die gleiche Änderung, wie in dem Thread, dessen Link Du gepostet hast...
Wann?Topic-Identifikation kommt ... irgendwann ...
Sorry, nein. Neue Contenido-Version, Communido und eigene Arbeit gehen vor...Bald?
Code: Alles auswählen
<?php
$selCat = "CMS_VALUE[0]"; // selected category
$maxChar = "CMS_VALUE[3]"; // Max. shown topic length
if (!is_numeric($maxChar) || $maxChar < 1) {
$maxChar = "50";
}
if(is_numeric($selCat) && $selCat != "0") {
// select all articles in category without start article
$query = "SELECT CONTENT.value AS headline, ARTLANG.idart AS id, " ;
$query .= "CATLANG.startidartlang, ARTLANG.idartlang FROM ";
$query .= $cfg["tab"]["cat_art"]." AS CATART, ";
$query .= $cfg["tab"]["art_lang"]." AS ARTLANG, ";
$query .= $cfg["tab"]["cat_lang"]." AS CATLANG, ";
$query .= $cfg["tab"]["content"]." AS CONTENT ";
$query .= "WHERE CATART.idcat = '$selCat' AND ARTLANG.idlang = '$lang' ";
$query .= "AND CONTENT.idartlang = ARTLANG.idartlang ";
$query .= "AND CATLANG.idlang = ARTLANG.idlang ";
$query .= "AND CATLANG.idcat = CATART.idcat ";
$query .= "AND ARTLANG.idart = CATART.idart ";
$query .= "AND ARTLANG.online = '1' ";
if ("CMS_VALUE[6]" != "enabled") {
$query .= "AND CATLANG.startidartlang != ARTLANG.idartlang ";
}
// Content-Type-Number
if (!is_numeric("CMS_VALUE[8]")) {
$query .= "AND CONTENT.typeid = '1' ";
} else {
$query .= "AND CONTENT.typeid = 'CMS_VALUE[8]' ";
}
// Content-Type
if (!is_numeric("CMS_VALUE[9]")) {
$query .= "AND CONTENT.idtype = '1' ";
} else {
$query .= "AND CONTENT.idtype = 'CMS_VALUE[9]' ";
}
$query .= "ORDER BY ";
/* Does not work in Contenido >= V4.5.x
if ("CMS_VALUE[6]" == "enabled" && "CMS_VALUE[7]" == "enabled") { // Startartikel an erster Stelle
$query .= "CATART.is_start DESC, ";
} */
// Sort by
if ("CMS_VALUE[4]" == "") {
$query .= "CATART.idart ";
} else {
$query .= "CMS_VALUE[4] ";
}
// ASC/DESC
if ("CMS_VALUE[5]" == "") {
$query .= "DESC ";
} else {
$query .= "CMS_VALUE[5] ";
}
// LIMIT
if (is_numeric("CMS_VALUE[10]") && "CMS_VALUE[10]" > 0) {
$query .= "LIMIT 0, CMS_VALUE[10]";
}
// execute query
$db->query($query);
if ($db->num_rows() > 0) {
// Table header
echo '<div id="artikellist">';
echo '<div id="listheaderbox">';
echo '<div class="listheader">CMS_VALUE[2]</div>';
echo '</div>';
while ($db->next_record()) {
$headline = urldecode($db->f("headline"));
if (strlen($headline) > $maxChar) {
$headline = substr($headline, 0, $maxChar);
$headline .= '..';
}
$link = $sess->url("front_content.php?client=$client&lang=$lang&idcat=$selCat&idart=".$db->f("id"));
echo '<div class="listeintrag"><a class="list" href="'.$link.'">'.$headline.'</a></div>';
}
unset($headline);
echo '</div>';
} // end while
} // end if
?>Code: Alles auswählen
/*----------------------------------------------------------------*/
/*-- Artikelliste Bildergalerie --*/
/*----------------------------------------------------------------*/
#artikellist
{
width: 100%;
margin-top: 20px;
}
#listheaderbox
{
margin-bottom: 20px;
}
.listheader
{
}
.listeintrag
{
width: 100%;
height: 30px;
margin-bottom: 10px;
font-size: 13px;
}
A.list:link
{
font-size: 13px;
text-decoration: none;
color: #3e4d74;
padding-left: 20pt;
background-image: url("../images/gal_ic01.jpg");
background-repeat: no-repeat; background-position: top left;
}
A.list:visited
{
font-size: 13px;
text-decoration: none;
color: #3e4d74;
padding-left: 20pt;
background-image: url("../images/gal_ic01.jpg");
background-repeat: no-repeat;
background-position: top left;
}
A.list:hover
{
font-size: 13px;
text-decoration: none;
color: #a52b28;
padding-left: 20pt;
background-image: url("../images/gal_ic02.jpg");
background-repeat: no-repeat; background-position: top left;
}
Eventuell im November?HerrB hat geschrieben:Sorry, nein. Neue Contenido-Version, Communido und eigene Arbeit gehen vor...Bald?
Gruß
HerrB