NEU!!! Start-Artikel-Liste (Platinum)

HardCastle
Beiträge: 22
Registriert: Mi 12. Mär 2003, 12:06
Kontaktdaten:

NEU!!! Start-Artikel-Liste (Platinum)

Beitrag von HardCastle » Do 3. Apr 2003, 12:22

Liebe Leute,

leider keine Zeit, aber trotzdem das Ergebnis meiner tagelangen Arbeit hier für Euch. Eine Überarbeitung des Start-Artikelliste Gold Moduls.

Code: Alles auswählen

Name des Moduls: START-ARTIKEL-LISTE (Platinum)

Beschreibung: Listet frei wählbare Überschriften, Texte und Bilder aus dem Modul "DER ARTIKEL" als Vorschau auf.
Die Nummer des Containers, in dem sich das Modul "DER ARTIKEL" befindet ist wählbar (war bisher nur im Modul-Output konfigurierbar).
Es können Startartikel von Kategorien oder die Artikel einer Kategorie gewählt und angezeigt werden.
Die Länge der Vorschautexte und die Schriftart der Fonts sind frei wählbar.
Vorschaubildgröße ist ist in der Breite wählbar, das Bild wird dann skaliert.
Die Bildposition links/rechts ist wählbar.
Die Anzeige eines Trenners wählbar.
MipForms 1.2 und Modul "DER ARTIKEL" (1.0.3) werden benötigt.



// Contenido 4.2
// MODUL-INPUT: Artikelliste (Platinum)
// Autor: HardCastle
// Veröffentlichung: Contenido-Forum
// Danke an die Autoren der ursprünglichen Moduls Artikelliste und an JSIT für das Modul Start-Artikelliste Gold, dass als
// Vorlage für diese Weiterentwicklung diente.

//-------------------------------
// KONFIGURATION
//-------------------------------

//CSS Style 'class_only', wenn ihr Klassen benutzen wollt
//          'id_only', wenn ihr css- Id's benutzen wollt
//Achtet darauf, dass ihr dies auch im output nocheinmal
//konfigurieren muesst, wenn ihr die Voreinstellung
//von 'class_only' auf 'id_only' aendert.

$css_style = 'id_only'; 

//-------------------------------
// ENDE DER KONFIGURATION
//-------------------------------

require_once ($ContenidoPath ."inc/fnc_mip_forms.inc.php");

//Modul an / aus
$mip_form['0']['cat'] = 'option';
$mip_form['0']['type'] = '';
$mip_form['0']['desc'] = 'Modul an/aus:';
$mip_form['0']['cms_var'] = 'CMS_VAR[0]';
$mip_form['0']['cms_val'] = 'CMS_VALUE[0]';
$mip_form['0']['option_desc']['0'] = 'Modul aktiviert';
$mip_form['0']['option_val']['0'] = 'true';
$mip_form['0']['option_desc']['1'] = 'Modul deaktiviert';
$mip_form['0']['option_val']['1'] = 'false';
$mip_form['0']['tab'] = '0';

//Kategorie wählen
$mip_form['1']['desc'] = 'Welche Kategorie?';
$mip_form['1']['cat'] = 'app_cat';
$mip_form['1']['output_cat'] = 'option';
$mip_form['1']['cms_var'] = "CMS_VAR[1]";
$mip_form['1']['cms_val'] = "CMS_VALUE[1]";

//Artikelliste oder Startartikel
$mip_form['2']['desc'] = 'Art der Anzeige:';
$mip_form['2']['cat'] = 'option';
$mip_form['2']['type'] = '';
$mip_form['2']['cms_var'] = 'CMS_VAR[2]';
$mip_form['2']['cms_val'] = 'CMS_VALUE[2]';
$mip_form['6']['cms_val_default'] = '0';
$mip_form['2']['option_desc']['0'] = 'ARTIKEL';
$mip_form['2']['option_val']['0'] = '0';
$mip_form['2']['option_desc']['1'] = 'STARTSEITEN';
$mip_form['2']['option_val']['1'] = '1';
$mip_form['2']['tab'] = '0';

//Schriftart Head1
$mip_form['3']['desc'] = 'Schriftart der Überschrift (Link):';
$mip_form['3']['cat'] = 'app_css';
$mip_form['3']['output_cat'] = 'option';
$mip_form['3']['type'] = '';
$mip_form['3']['cms_var'] = 'CMS_VAR[3]';
$mip_form['3']['cms_val'] = 'CMS_VALUE[3]';
$mip_form['3']['flag'] = $css_style;

//Schriftart Text1
$mip_form['4']['desc'] = 'Schriftart des Einführungstextes:';
$mip_form['4']['cat'] = 'app_css';
$mip_form['4']['output_cat'] = 'option';
$mip_form['4']['type'] = '';
$mip_form['4']['cms_var'] = 'CMS_VAR[4]';
$mip_form['4']['cms_val'] = 'CMS_VALUE[4]';
$mip_form['4']['flag'] = $css_style;

//Max. Zeichen Ueberschrift1
$mip_form['5']['cat'] = 'txt';
$mip_form['5']['type'] = '';
$mip_form['5']['desc'] = 'Zeichenlänge Überschrift:';
$mip_form['5']['cms_var'] = 'CMS_VAR[5]';
$mip_form['5']['cms_val'] = 'CMS_VALUE[5]';
$mip_form['5']['cms_val_default'] = '100';
$mip_form['5']['tab'] = '0';

//Bildbreite
$mip_form['6']['cat'] = 'txt';
$mip_form['6']['type'] = '';
$mip_form['6']['desc'] = 'Bildbreite (Pixel):';
$mip_form['6']['cms_var'] = 'CMS_VAR[6]';
$mip_form['6']['cms_val'] = 'CMS_VALUE[6]';
$mip_form['6']['cms_val_default'] = '50';
$mip_form['6']['tab'] = '0';

//Bildhöhe ist wegen Skalierungsfunktion weggefallen

//Text für Weiterleitungslink
$mip_form['8']['cat'] = 'txt';
$mip_form['8']['type'] = '';
$mip_form['8']['desc'] = 'Text für Weiterleitung:';
$mip_form['8']['cms_var'] = 'CMS_VAR[8]';
$mip_form['8']['cms_val'] = 'CMS_VALUE[8]';
$mip_form['8']['cms_val_default'] = '';
$mip_form['8']['tab'] = '0';

//Max. Zeichen Text
$mip_form['9']['cat'] = 'txt';
$mip_form['9']['type'] = '';
$mip_form['9']['desc'] = 'Zeichenlänge Einführungstextes:';
$mip_form['9']['cms_var'] = 'CMS_VAR[9]';
$mip_form['9']['cms_val'] = 'CMS_VALUE[9]';
$mip_form['9']['cms_val_default'] = '100';
$mip_form['9']['tab'] = '0';

//Container-Nr. DER ARTIKEL
$mip_form['10']['cat'] = 'txt';
$mip_form['10']['type'] = '';
$mip_form['10']['desc'] = 'Container-Nr. von DER ARTIKEL:';
$mip_form['10']['cms_var'] = 'CMS_VAR[10]';
$mip_form['10']['cms_val'] = 'CMS_VALUE[10]';
$mip_form['10']['cms_val_default'] = '';
$mip_form['10']['tab'] = '0';

//Trenner an / aus
$mip_form['12']['cat'] = 'option';
$mip_form['12']['type'] = '';
$mip_form['12']['desc'] = 'Trennlinie an/aus:';
$mip_form['12']['cms_var'] = 'CMS_VAR[12]';
$mip_form['12']['cms_val'] = 'CMS_VALUE[12]';
$mip_form['12']['option_desc']['0'] = 'Trennlinie an';
$mip_form['12']['option_val']['0'] = 'true';
$mip_form['12']['option_desc']['1'] = 'Trennlinie aus';
$mip_form['12']['option_val']['1'] = 'false';
$mip_form['12']['tab'] = '0';

//Was soll 1. angezeigt werden
$mip_form['13']['desc'] = 'Welche Überschrift (Link)?';
$mip_form['13']['cat'] = 'option';
$mip_form['13']['type'] = '';
$mip_form['13']['cms_var'] = 'CMS_VAR[13]';
$mip_form['13']['cms_val'] = 'CMS_VALUE[13]';
$mip_form['13']['cms_val_default'] = 'u1';
$mip_form['13']['option_desc']['0'] = 'Überschrift 1';
$mip_form['13']['option_val']['0'] = 'u1';
$mip_form['13']['option_desc']['1'] = 'Überschrift 2';
$mip_form['13']['option_val']['1'] = 'u2';
$mip_form['13']['option_desc']['2'] = 'Text 1';
$mip_form['13']['option_val']['2'] = 't1';
$mip_form['13']['option_desc']['3'] = 'Text 2';
$mip_form['13']['option_val']['3'] = 't2';
$mip_form['13']['tab'] = '0';

//Was soll 2. angezeigt werden
$mip_form['14']['desc'] = 'Welcher Einführungstext?';
$mip_form['14']['cat'] = 'option';
$mip_form['14']['type'] = '';
$mip_form['14']['cms_var'] = 'CMS_VAR[14]';
$mip_form['14']['cms_val'] = 'CMS_VALUE[14]';
$mip_form['14']['cms_val_default'] = 't1';
$mip_form['14']['option_desc']['0'] = 'Überschrift 1';
$mip_form['14']['option_val']['0'] = 'u1';
$mip_form['14']['option_desc']['1'] = 'Überschrift 2';
$mip_form['14']['option_val']['1'] = 'u2';
$mip_form['14']['option_desc']['2'] = 'Text 1';
$mip_form['14']['option_val']['2'] = 't1';
$mip_form['14']['option_desc']['3'] = 'Text 2';
$mip_form['14']['option_val']['3'] = 't2';
$mip_form['14']['tab'] = '0';

//Welches Bild soll angezeigt werden?
$mip_form['15']['desc'] = 'Welches Bild?';
$mip_form['15']['cat'] = 'option';
$mip_form['15']['type'] = '';
$mip_form['15']['cms_var'] = 'CMS_VAR[15]';
$mip_form['15']['cms_val'] = 'CMS_VALUE[15]';
$mip_form['15']['cms_val_default'] = '1';
$mip_form['15']['option_desc']['0'] = 'Bild 1';
$mip_form['15']['option_val']['0'] = '1';
$mip_form['15']['option_desc']['1'] = 'Bild 2';
$mip_form['15']['option_val']['1'] = '2';
$mip_form['15']['option_desc']['2'] = 'Bild 3';
$mip_form['15']['option_val']['2'] = '3';
$mip_form['15']['tab'] = '0';

//Bildposition links oder rechts?
$mip_form['16']['desc'] = 'Bildposition:';
$mip_form['16']['cat'] = 'option';
$mip_form['16']['type'] = '';
$mip_form['16']['cms_var'] = 'CMS_VAR[16]';
$mip_form['16']['cms_val'] = 'CMS_VALUE[16]';
$mip_form['16']['cms_val_default'] = 'left';
$mip_form['16']['option_desc']['0'] = 'links';
$mip_form['16']['option_val']['0'] = 'left';
$mip_form['16']['option_desc']['1'] = 'rechts';
$mip_form['16']['option_val']['1'] = 'right';
$mip_form['16']['tab'] = '0';

//Abstand zwischen Bild und Text
$mip_form['17']['cat'] = 'txt';
$mip_form['17']['type'] = '';
$mip_form['17']['desc'] = 'Abstand Bild - Text:';
$mip_form['17']['cms_var'] = 'CMS_VAR[17]';
$mip_form['17']['cms_val'] = 'CMS_VALUE[17]';
$mip_form['17']['cms_val_default'] = '5';
$mip_form['17']['tab'] = '0';

//HTML-Template für Trenner
$mip_form['18']['cat'] = 'txtarea';
$mip_form['18']['rows'] = '3';
$mip_form['18']['type'] = '';
$mip_form['18']['desc'] = 'HTML-Template Trenner:';
$mip_form['18']['cms_var'] = 'CMS_VAR[18]';
$mip_form['18']['cms_val'] = 'CMS_VALUE[18]';
$mip_form['18']['cms_val_default'] = '<hr>';
$mip_form['18']['tab'] = '0';


mip_formsp($mip_form['0']);
mip_formsp($mip_form['2']);
mip_formsp($mip_form['1']);

echo "<hr>";

mip_formsp($mip_form['10']);
mip_formsp($mip_form['13']);
mip_formsp($mip_form['5']);
mip_formsp($mip_form['3']);
mip_formsp($mip_form['14']);
mip_formsp($mip_form['9']);
mip_formsp($mip_form['4']);
mip_formsp($mip_form['15']);
mip_formsp($mip_form['6']);
mip_formsp($mip_form['16']);
mip_formsp($mip_form['17']);

echo "<hr>";

mip_formsp($mip_form['8']);

echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> 
<tr valign=\"top\"> 
<td width=\"202\">Bild für Weiterleitung:</td>
<td width=\"135\"><select name=\"CMS_VAR[11]\" size=\"1\" style=\"width:100%\">"; 
$sql = "SELECT * FROM $cfgTab_upl WHERE idclient='$client' AND filetype='img' ORDER BY filename"; 
$db->query($sql); 
while ($db->next_record()) { 
            echo "<option value=\"".$db->f("filename")."\" selected>".$db->f("description")."</option>"; 
} 
echo "</SELECT></td>
<td width=\"5\"> </td></tr>
</table>";

mip_formsp($mip_form['12']);
mip_formsp($mip_form['18']);

unset($mip_form);



// Contenido 4.2
// MODUL-OUTPUT: Artikelliste (Platinum)
// Autor: HardCastle
// Veröffentlichung: Contenido-Forum
// Danke an die Autoren der ursprünglichen Moduls Artikelliste und an JSIT für das Modul Start-Artikelliste Gold, dass als
// Vorlage für diese Weiterentwicklung diente.


//-------------------------------
// KONFIGURATION
//-------------------------------

// CSS- STYLE SHEETS
// Welche styles sollen benutzt werden? Mögliche Werte sind 
// 'id' oder 'class'
// WICHTIG: 
// Wird 'id' gewählt, muß im Inputbereich 'id_only' gewählt werden
// Wird 'class' gewählt, muß im Inputbereich 'class_only' gewählt werden

$css_style = 'id';

//-------------------------------
// ENDE DER KONFIGURATION
//-------------------------------



//Abstand zwischen Bild und Text in Pixeln
$imgspace = "CMS_VALUE[17]"; 

//Trenner zwischen den Vorschauen
$trennerhtml = "CMS_VALUE[18]";

// second db class instance 
$db2 = new DB_Contenido; 

// Modul an/aus
$mod_active = "CMS_VALUE[0]";

//Container-Nr.
$contain = "CMS_VALUE[10]";

//Überschrift-Link
$ueberschrift = "CMS_VALUE[13]";

//Einführungstext
$einfuehrung = "CMS_VALUE[14]";

//Bild-Nr.
$bildnr = "CMS_VALUE[15]";

// selected category
$selcat = "CMS_VALUE[1]"; 

// selected is_start article or site article 
$sel_start = "CMS_VALUE[2]";

// Schriftart Ueberschrift
$fonthead = "CMS_VALUE[3]";

// Schriftart Text
$fonttext = "CMS_VALUE[4]";

// Anzahl der Zeichen Ueberschrift1
$mxh[0] = "CMS_VALUE[5]"; 

// Anzahl der zeichen Text1 
$mxh[1] = "CMS_VALUE[9]"; 

// bildgröße 
$imgwidth = "CMS_VALUE[6]";		// Breite des verkleinerten Bildes
$imgwidth = floor ($imgwidth);		// ganze positive Zahl

//Bildposition
$imgposition = "CMS_VALUE[16]";

// selected 'Weiter' Text 
$text_to = "CMS_VALUE[8]"; 

// selected 'Weiter' Bild 
$image_to = "CMS_VALUE[11]"; 

//Trennlinie
$trenner = "CMS_VALUE[12]";
if ($trenner == 'true') {$trenner = $trennerhtml;} else {$trenner = "";};

//Modul an?
if($mod_active == 'true'){

// select all articles in category widthout start article 
// jsit start 

if ($sel_start=="0") { 
$query = "SELECT ARTLANG.idside, ARTLANG.idsidelang FROM $cfgTab_cat_side AS CATART, $cfgTab_side_lang AS ARTLANG "."WHERE CATART.idcat = '$selcat' AND ARTLANG.idside = CATART.idside AND ARTLANG.idlang = '$lang' AND "."ARTLANG.online = '1' AND CATART.is_start = '0' ORDER BY ARTLANG.title"; 
} 
else 
{ 
$query = "SELECT ARTLANG.idside, ARTLANG.idsidelang, CATART.idcat FROM $cfgTab_cat_side AS CATART, $cfgTab_side_lang AS ARTLANG, $cfgTab_cat AS KAT  "."WHERE KAT.parentid = '$selcat' AND CATART.idcat = KAT.idcat AND ARTLANG.idside = CATART.idside AND ARTLANG.idlang = '$lang' AND "."ARTLANG.online = '1' AND CATART.is_start = '1 ' ORDER BY ARTLANG.title"; 
} 

//jsit end 

// execute query 
$db->query($query); 

IF (_DEBUG) 
{ 
   echo "CAT: ".$selcat ; 
   echo "<br>:".$query."<br>"; 
   echo $db->nf()."<br>"; 
} 

unset($articleID); 
unset($linkID);
unset($idcatID); 

// get id's of sub articles 
while ($db->next_record()) 
{ 
   $articleID[] = $db->f("idsidelang"); 
   $linkID[] = $db->f("idside");
   $idcatID[] = $db->f("idcat");
} // end while 

// loop through subarticles 

IF (_DEBUG) 
{ 
   echo "<pre>articleID:<br>"; 
   var_dump ($articleID); 
   echo "</pre>"; 

echo "<br><pre>linkID:<br>"; 
   var_dump ($linkID); 
   echo "</pre>"; 

echo "<br><pre>idcatID:<br>"; 
   var_dump ($idcatID); 
   echo "</pre>"; 
} 

// now loop through ALL articles 
foreach ($articleID as $key => $value) 
{ 
   // select all CMS variables of the article 
   $query = "SELECT * FROM $cfgTab_content WHERE idsidelang = '$value' ORDER BY typeid"; 
    
   IF (_DEBUG) 
   { 
   echo "CAT: ".$selcat ; 
   echo "<pre><br>:".$query."<br>"; 
   } 
   // execute query 
   $db->query($query); 

   IF (_DEBUG) 
   { 
      echo "select all CMS variables of the article:<br>"; 
      var_dump ($articleID); 
      echo "</pre>";
   } 

   // link 
   if ($sel_start=="0") {
   $link = $sess->url("front_content.php?client=$client&lang=$lang&idcat=$selcat&idside=$linkID[$key]&m=$m&s=$s"); 
   } else {
   $link = $sess->url("front_content.php?client=$client&lang=$lang&idcat=$idcatID[$key]&idside=$linkID[$key]&m=$m&s=$s");
   }

   // initialize vars to point out user Errors
   if ($ueberschrift == u1) {$headx = " ÜBERSCHRIFT 1";};
   if ($ueberschrift == u2) {$headx = " ÜBERSCHRIFT 2";};
   if ($ueberschrift == t1) {$headx = "r TEXT 1";};
   if ($ueberschrift == t2) {$headx = "r TEXT 2";};
   $headline = "Für den Link ausgewählte".$headx." ist auf der Artikelseite noch nicht eingegeben worden!!!"; 
   $text = ". . . "; 
   $img = "0"; 

   // loop through result and extraxt data 
   while ($db->next_record()) 
   { 

      // data type 
      $type = $db->f("idtype"); 
      $type2 = $db->f("typeid"); // R.Meyer 

if ($ueberschrift == u1) {$typeu = "1"; $type2u = "1";};
if ($ueberschrift == u2) {$typeu = "1"; $type2u = "2";};
if ($ueberschrift == t1) {$typeu = "3"; $type2u = "1";};
if ($ueberschrift == t2) {$typeu = "3"; $type2u = "2";};
if ($einfuehrung == u1) {$typee = "1"; $type2e = "1";};
if ($einfuehrung == u2) {$typee = "1"; $type2e = "2";};
if ($einfuehrung == t1) {$typee = "3"; $type2e = "1";};
if ($einfuehrung == t2) {$typee = "3"; $type2e = "2";};
if ($bildnr == 1) {$type2b = "1";};
if ($bildnr == 2) {$type2b = "2";};
if ($bildnr == 3) {$type2b = "3";};

      if ($type == $typeu && $type2 == $contain.$type2u) 
      { // headline "vorschau" 
         $headline = $db->f("value"); 

      } 
      elseif ($type == $typee && $type2 == $contain.$type2e) 
      { // text "vorschau" 
         $text = $db->f("value"); 

      } 
      elseif ($type == 4 && $type2 == $contain.$type2b) 
      { // image "vorschau" 
         $value = $db->f("value"); 
         $query = "SELECT filename FROM $cfgTab_upl WHERE idupl = '$value'"; 
         $db2->query($query); 
         $db2->next_record(); 
         //  $img = $cfgClient[$client]["htmlpath"]["img"] . $db2->f("filename"); 
         $img = $cfgClient[$client]["frontendpath"]["img"] . $db2->f("filename"); 
      } // end if 

   } // end while 

   IF (_DEBUG) 
   { 
      echo "<pre>headline:<br>"; 
      var_dump ($headline); 
      echo "</pre>"; 
   } 

// headline length 
$len = strlen($headline); 
// cut headline if too long 
 if ($len > $mxh[0] && $mxh[0] > 0) { 
     $headline = substr($headline,0,$mxh[0]); 
     $headline = $headline. " ..."; 
     } // end if 

// text length
$len = strlen($text); 
// cut text if too long 
 if ($len > $mxh[1] && $mxh[1] > 0) { 
     $text = substr($text,0,$mxh[1]); 
     $text = $text. " ..."; 
     } ;// end if 

//Bild skalieren
if($img=="0") {
   if($imgposition=="left") {
   $imglink = "<td width = $imgspace></td><td >";};
} else {
$imgsize = GetImageSize ("$img");		// Ermittelt die Ausmaße einer Image-Datei
$imgwidthorg = $imgsize[0];		// Img Breite
$imgheightorg = $imgsize[1];		// Img Hoehe
$zoomfaktor = $imgwidth/$imgwidthorg;	// Zommfaktor ermitteln
$imgheight = $imgheightorg*$zoomfaktor;	// Hoehe des verkleinerten Bildes
$imgheight = floor ($imgheight);		// ganze positive Zahl
$imglink = "<td width=\"100%\"><IMG SRC='$img' width='$imgwidth' vspace=$imgspace hspace=$imgspace height='$imgheight' align='$imgposition'>";
};

   echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> 
      <tr valign=\"top\"> 
            $imglink         
            <a href=\"$link\"> 
               <span $css_style =\"$fonthead\">$headline</span><br><br> 
            </a> 
            <span $css_style =\"$fonttext\">$text</span> 
         </td> 
      </tr> 
      <tr valign=\"bottom\" align=\"right\"> 
         <td colspan=\"2\"> 
            <table width=\"100%\" cellspacing=\"5\" cellpadding=\"0\" border=\"0\"> 
               <td valign=\"middle\" align=\"right\" width=\"100%\"> 
                  <a href=\"$link\" $css_style =\"$fonttext\">$text_to 
                  </a> 
               </td> 
               <td align=\"right\"> 
                  <a href=\"$link\"> 
                     <img src=\"".$cfgClient[$client]["frontendpath"]["img"].$image_to."\" border=\"0\"> 
                  </a> 
               </td> 
            </table> 
         </td> 
      </tr> 
   </table>";
echo $trenner; 

unset($headline); 


}; // end foreach

// Und Tschuess..
unset($css_style);
unset($db2);
unset($mod_active);
unset($contain);
unset($selcat );
unset($sel_start);
unset($fonthead);
unset($fonttext);
unset($mxh[0]);
unset($mxh[1]);
unset($imgwidth);
unset($imgheight);
unset($img);
unset($imgposition);
unset($text_to);
unset($image_to);
unset($trenner);
unset($imgspace);

} // end if Modul aktiv?
mfg HardCastle

pulk
Beiträge: 217
Registriert: Sa 2. Nov 2002, 09:57
Kontaktdaten:

Beitrag von pulk » So 13. Apr 2003, 19:01

danke für das modul ;)

genau das was ich gesucht hab ! super arbeit :D

pulk
Beiträge: 217
Registriert: Sa 2. Nov 2002, 09:57
Kontaktdaten:

Beitrag von pulk » Do 17. Apr 2003, 21:19

gibts eigentlich auch eine möglichkeit die artikel nicht nach anfangsbuchstaben sondern nach erstellungsdatum zu sortieren ?

interessant wäre es auch noch wenn man die anzahl der artikel in der zusammenfassung konfigurieren könnte, wenn mehr vorhanden sind, mit link zu älteren artikeln.

HardCastle
Beiträge: 22
Registriert: Mi 12. Mär 2003, 12:06
Kontaktdaten:

Danke für die Lorbeeren

Beitrag von HardCastle » Fr 25. Apr 2003, 18:30

Hi pulk,

werde mich nächste Woche ransetzen und versuchen Codeschnippsel von vorhandenen Modulen, die diese Funktionalität schon bieten, einzuarbeiten.

Bis dahin.

pulk
Beiträge: 217
Registriert: Sa 2. Nov 2002, 09:57
Kontaktdaten:

Beitrag von pulk » Fr 25. Apr 2003, 23:28

super, vielen dank ;)

roman
Beiträge: 127
Registriert: Fr 25. Apr 2003, 15:36
Kontaktdaten:

Probleme im Frontend

Beitrag von roman » Mi 30. Apr 2003, 10:38

Hallo ich habe hier ähnliche Probleme wie sie damals in der gold version auftauchten. Ich bekomme immer div. code Schnipsel wie z.B.:

------------------------------------------------------------
CAT: 5
:SELECT ARTLANG.idside, ARTLANG.idsidelang FROM con_cat_side AS CATART, con_side_lang AS ARTLANG WHERE CATART.idcat = '5' AND ARTLANG.idside = CATART.idside AND ARTLANG.idlang = '2' AND ARTLANG.online = '1' AND CATART.is_start = '0' ORDER BY ARTLANG.title
1

articleID:
array(1) {
[0]=>
string(2) "55"
}

linkID:
array(1) {
[0]=>
string(2) "21"
}

idcatID:
array(1) {
[0]=>
NULL
}

CAT: 5


:SELECT * FROM con_content WHERE idsidelang = '55' ORDER BY typeid
select all CMS variables of the article:
array(1) {
[0]=>
string(2) "55"
}

headline:
string(17) "Was ist die DGFK?"

------------------------------------------------------------

Das Backend läuft prima.
Ich nutze das Modul auf einer Startseite womit ich die Artikel einer anderen Kategorie auflisten möchte. Ansatzweise wird die Liste auch ausgegeben, aber nur mit dem Anfangsbuchstaben... und darüber den Codeschnipseln... .

Was habe ich falsch gemacht??
mfg Roman

pulk
Beiträge: 217
Registriert: Sa 2. Nov 2002, 09:57
Kontaktdaten:

Beitrag von pulk » Mi 30. Apr 2003, 10:45

der code schnipsel is eine debug, zum auslesen ob die richtigen daten gelesen werden.
NUNNNN dasss ist was ganz feines! also Du hast bestimmt den Code gesehen, der wie folgt lautet:
Code:

IF (_DEBUG)
{
echo "CAT: ".$selcat ;
echo "<br>:".$query."<br>";
echo $db->nf()."<br>";
}


Entweder Du schreibst in die inc\config.php folgenden code:
Code:

//---------------------------------------------------------
// DEBUG MODUS einschalten 1=ein; 0=aus
//---------------------------------------------------------
define ("_DEBUG",1);


oder Du löschst die Zeilen raus.
Jörg

den richtigen container mußt du auch noch angeben im modul
Das Geheimnis ist "$type2 == 31...." .
Die erste Zahl, also die '3' zeigt an, das sich das Artikelmodul in Container 3 befindet.
Würde es in Container 4 liegen, müßte es heißen:
"$type2 == 41"
In Container 20
"$type2 == 201"

Siehe auch
http://www.contenido.de/forum/viewtopic ... t=faq#1779

roman
Beiträge: 127
Registriert: Fr 25. Apr 2003, 15:36
Kontaktdaten:

Platinum

Beitrag von roman » Mi 30. Apr 2003, 10:58

Aber die Container Nr. von Der Artikel kann ich doch im Backend angeben?
Platinum Version!!! Den Debug Modus habe ich eingearbeitet, läuft noch nicht.

Roman

roman
Beiträge: 127
Registriert: Fr 25. Apr 2003, 15:36
Kontaktdaten:

CSS läuft noch nicht

Beitrag von roman » Mi 30. Apr 2003, 11:29

Jetzt habe ich den debug modus ausgeschaltet und jetzt beginnt es so halb wegs zu laufen. Die Fonteinstellungen werden nicht übernommen, 'class_only' ist eingestellt.

Wenn ich ins Backend des Modules gehe sind jedesmal div. defauld Werte eingestellt. Nicht die Einstellungen vom letzten mal.

Egal was ich bei der Zeichenlänge eingebe es steht nur ein Buchstabe da oder ich lasse die Einstellung weg dann steht alles da. komisch!!!

Irgendwie ist noch der Wurm...

Roman

HardCastle
Beiträge: 22
Registriert: Mi 12. Mär 2003, 12:06
Kontaktdaten:

Beitrag von HardCastle » Mi 30. Apr 2003, 11:52

Hallo Roman,

das CSS-Problem klingt nach einem Konfigfehler im Modul. Hast Du sowohl im Input-Bereich "class_only" als AUCH im Output-Bereich "class" bei der Fontkonfig eingetragen?

Hardcastle

roman
Beiträge: 127
Registriert: Fr 25. Apr 2003, 15:36
Kontaktdaten:

CSS

Beitrag von roman » Mi 30. Apr 2003, 12:02

Ja das war das Problem,
im Output hatte ich auch "class_only"
Ist etwas verwirrend erklärt im Output. Ich dachte immer mit ..._only.
OK jetzt funzt es. Danke

Jetzt noch das Problem mit den defauld Werten die sich immer wieder selbst eintragen. Kann ich die entsprechende Zeile z.B.:

$mip_form['9']['cms_val_default'] = '100';

einfach löschen, damit die letzte Einstellung drinn steht.

Und warum wird der Text nicht angezeigt wenn ich im Feld Zeichenlänge z.B. 100 eingebe, da steht immer nur der Anfangsbuchstabe in Frontend.

Roman

HardCastle
Beiträge: 22
Registriert: Mi 12. Mär 2003, 12:06
Kontaktdaten:

Vorschau-Problem

Beitrag von HardCastle » Mi 30. Apr 2003, 12:10

Hallo Roman,

hast Du die Mip-Forms in der Version 1.2 und das Modul DER ARTIKEL in der Version 1.0.3 installiert (nach Anleitung)?

Überprüfe bitte durch Suche im Modul-Forum, ob Du eventuelle Bug-Fixes übersehen hast.

Kann erst heute Abend Dein Problem weiterbearbeiten, da ich jetzt Brötchen verdienen muss.

Eventuell hilfreich wäre auch ein zeitweiser Zugang zu Deiner Site.

HardCastle

roman
Beiträge: 127
Registriert: Fr 25. Apr 2003, 15:36
Kontaktdaten:

Beitrag von roman » Mi 30. Apr 2003, 12:16

Hallo HardCastle

<hast Du die Mip-Forms in der Version 1.2 und das Modul DER ARTIKEL in <der Version 1.0.3 installiert (nach Anleitung)?
Ja habe ich muss ich auch richtig gemacht haben da "der Artikel" funktioniert.

<Überprüfe bitte durch Suche im Modul-Forum, ob Du eventuelle Bug-Fixes <übersehen hast.
Für die Platinum Version habe ich keine Fixes gefunden, ich weis nicht wie konform die mit der gold Version ist

< Kann erst heute Abend Dein Problem weiterbearbeiten, da ich jetzt
< Brötchen verdienen muss.

Vielleicht fällt Dir noch was ein.
Roman

roman
Beiträge: 127
Registriert: Fr 25. Apr 2003, 15:36
Kontaktdaten:

Ergänzung

Beitrag von roman » Mi 30. Apr 2003, 14:10

Gibt es eine praktische Möglichkeit die Anzahl der Artikel welche gelistet werden zu beschränken?

Außerdem zu sortieren nach Datum aufsteigend oder absteigend.

Roman

HardCastle
Beiträge: 22
Registriert: Mi 12. Mär 2003, 12:06
Kontaktdaten:

Sortierung und Begrenzung der Artikel

Beitrag von HardCastle » Mi 30. Apr 2003, 17:59

Hallo Roman, Hallo Pulk,

Brötchen-Arbeit fertig, jetzt beginnt wieder die Arbeit ohne Bezahlung.

Also!!!
Sortierung und bereits fertig.

Funktionen:
Sortierung nach Titel, nach Erstellungsdatum und nach Änderungsdatum (leider nicht aus den Daten aus DER ARTIKEL, sondern "nur" nach den Daten aus den Contenido-Seiten-Info im Backend).

Sortierung aufwärts und abwärts.

Wird demnächst gepostet (sitze nicht am Heimrechner).

Artikelbegrenzung ist noch in Arbeit, Ende noch nicht abzusehen.

Gruß HardCastle

Gesperrt