Modul: Artikelliste für V4.6 (V3.0.0)
Verfügen die Unterseiten auch nochmal über ein Template?
Gruß
HerrB
			
			
									
						Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
						Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
Re: Modul: Artikelliste für V4.6 (V3.0.0)
Hallo,
bin absoluter Neuling und habe mit der Artikelliste echte Probleme. Sonst ist alles im grünen Bereich. Version 4.6.2
ich habe ein Modul "artikelliste" erstellt dort entsprechend den Code eingegeben.
Im Bereich "Kategorie" habe ich die Kat "Teaser_rechts" auf Standard eingestellt.
Im Template Standard habe ich dem Container15 die Artikelliste zugewiesen.
ich habe einen Artikel für "Teaser rechts" geschrieben und in der Konfiguration zugeordnet. in der Vorschau ist der Artikel auch zu sehen.
Aber im Frontend ist nix mehr da.
Wo könnte der Fehler liegen???
Danke schon mal.
			
			
									
						bin absoluter Neuling und habe mit der Artikelliste echte Probleme. Sonst ist alles im grünen Bereich. Version 4.6.2
ich habe ein Modul "artikelliste" erstellt dort entsprechend den Code eingegeben.
Im Bereich "Kategorie" habe ich die Kat "Teaser_rechts" auf Standard eingestellt.
Im Template Standard habe ich dem Container15 die Artikelliste zugewiesen.
ich habe einen Artikel für "Teaser rechts" geschrieben und in der Konfiguration zugeordnet. in der Vorschau ist der Artikel auch zu sehen.
Aber im Frontend ist nix mehr da.
Wo könnte der Fehler liegen???
Danke schon mal.
Ich verstehs noch nicht. Kannst mir Daten via PM senden (Taste PM unter diesem Beitrag). Braucht aber bis Samstag.
Gruß
HerrB
			
			
									
						Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
						Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
Nun, der Code liegt ja vor Dir, möglich ist alles. Wenn der angezeigte Artikel der Startartikel ist, geht es mit Bordmitteln (halt ohne Startartikel-Anzeige).
Sonst müsstest Du entweder hart codieren, dass die Artikel-ID xyz ignoriert werden soll oder - wenn sich der Artikel und damit die ID von Bereich zu Bereich unterscheidet - das richtig mit Auswahl-Listbox für den Eingabe-Bereich und Berücksichtigung im Ausgabe-Bereich programmieren.
Gruß
HerrB
			
			
									
						Sonst müsstest Du entweder hart codieren, dass die Artikel-ID xyz ignoriert werden soll oder - wenn sich der Artikel und damit die ID von Bereich zu Bereich unterscheidet - das richtig mit Auswahl-Listbox für den Eingabe-Bereich und Berücksichtigung im Ausgabe-Bereich programmieren.
Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
						Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
- 
				Nebel
 
Hallo, 
ersteinmal vielen Dank für die Artikelliste.
Ich hätte da noch zwei Wünsche
 
Zum Einen, dass ein alternativer Text angezeigt wird, wenn kein Artikel (außer dem nicht anzuzeigenden Startartikel) in der Kategorie liegt.
So wie hier zur alten Version http://www.contenido.org/forum/viewtopi ... 1494#61494
Ich bekomme es einfach nicht auf die neue Version umgemünzt
 
Zum anderen, dass zur Topic-Identifikation auch wieder der Seitentitel (Backend) ausgewählt werden kann.
Schöne Grüße
Nebel
			
			
									
						ersteinmal vielen Dank für die Artikelliste.
Ich hätte da noch zwei Wünsche
Zum Einen, dass ein alternativer Text angezeigt wird, wenn kein Artikel (außer dem nicht anzuzeigenden Startartikel) in der Kategorie liegt.
So wie hier zur alten Version http://www.contenido.org/forum/viewtopi ... 1494#61494
Ich bekomme es einfach nicht auf die neue Version umgemünzt
Zum anderen, dass zur Topic-Identifikation auch wieder der Seitentitel (Backend) ausgewählt werden kann.
Schöne Grüße
Nebel
Muss ich jetzt nicht verstehen, oder? Es ist genau die gleiche Änderung, wie in dem Thread, dessen Link Du gepostet hast...
Statt:
am Ende der Ausgabe nimmst Du:
Topic-Identifikation kommt ... irgendwann ...
Gruß
HerrB
			
			
									
						Statt:
Code: Alles auswählen
   } // end while 
} // end if Code: Alles auswählen
   } else {
      echo mi18n("Nothing here");
   }// end while 
} // end if Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
						Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
- 
				Nebel
 
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 ...
Bei Weiterleitungen zu pdf's beispielsweise ist das nämlich sehr praktisch. Sonst muss man für jedes Weitergeleitete Dokument z.B. erst noch ne Überschrift im Artikel erstellen.
Bald? ... bitte, bitte
Schöne Grüße
Nebel
Sorry, nein. Neue Contenido-Version, Communido und eigene Arbeit gehen vor...Bald?
Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
						Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
- 
				media-konzept
 - Beiträge: 90
 - Registriert: So 20. Mär 2005, 13:24
 - Wohnort: CH-5430 Wettingen
 - Kontaktdaten:
 
Standartartikelliste Tebllenfrei
Hallo zusammen,
anbei unser überarbeiteter Output ohne Tabellen und mit CSS gesteuert...eventuell kann es ja noch jemand gebrauchen
Output:
Dazu passendes CSS:
passend dazu kann man sich zwei Bildchen zuschnipseln für die HREF Klasse...
wie gesagt, wenns jemand brauchen kann...
Gruss Felix
			
			
									
						anbei unser überarbeiteter Output ohne Tabellen und mit CSS gesteuert...eventuell kann es ja noch jemand gebrauchen
Output:
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;
  }
wie gesagt, wenns jemand brauchen kann...
Gruss Felix
two beers or not two beers
						Danke!
Gruß
HerrB
			
			
									
						Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
						Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
- 
				Nebel