news und events modul umbauen [gelöst]
Verfasst: Do 16. Mär 2006, 09:38
hallo,
leider ist das beispilemodul der version 4.6.4 nicht übersetzungsfähig. daher habe ich mal versucht das ganze umzubauen. ich habe ein template gemacht mit folgender zeile:
und das modul sieht nun wie folgt aus:
zumindest der output.
das problem ist: ich bekomme den link nicht an template übergeben
was kann ich hier tun damit ich das wörtchen "mehr..." übersetzen kann?
gruesse rene
leider ist das beispilemodul der version 4.6.4 nicht übersetzungsfähig. daher habe ich mal versucht das ganze umzubauen. ich habe ein template gemacht mit folgender zeile:
Code: Alles auswählen
<tr><td width="2"></td><td class="boxlink" width="144" align="right"><a href="'.$link.'">{MEHR}<img src="images/pfeil_rechts.gif" border="0"></a></td><td width="2"> </td></tr>
Code: Alles auswählen
<?php
/***********************************************
* CONTENIDO MODUL - OUTPUT
*
* REFERENZ MODUL / ARTIKELLISTE
*
* Artikelliste mit Img 1, Head 1, Head 2
*
* Erstellt eine Liste mit allen Artikel bis
* auf den Startartikel.
*
* Author : Jan Lengowski
* Copyright : four for business AG
* Created : 15-08-2002
* Modified : 16-08-2002
************************************************/
// second db class instance
$db2 = new DB_Contenido;
// selected category
$selcat = "CMS_VALUE[0]";
if($selcat!="0" && $selcat!=""){
// select all articles in category widthout start article
$query = "SELECT ARTLANG.idart, ARTLANG.idartlang FROM ".$cfg["tab"]["cat_art"]." AS CATART, ".
$cfg["tab"]["art_lang"]." AS ARTLANG ".
"WHERE CATART.idcat = '$selcat' AND ARTLANG.idart = CATART.idart AND ARTLANG.idlang = '$lang' AND ".
"ARTLANG.online = '1' ORDER BY CATART.idart DESC";
// execute query
$db->query($query);
unset($articleID);
unset($linkID);
// get id's of sub articles
while ($db->next_record()) {
$articleID[] = $db->f("idartlang");
$linkID[] = $db->f("idart");
} // end while
// loop through subarticles
echo '
<table width="154" border="0" cellspacing="0" cellpadding="0" style="background-image:url(images/boxen/hg_kachel_box_154px.gif); background-repeat:repeat-y">
<tr><td colspan="3"><img src="images/boxen/titel_news.gif" width="154" height="18"></td></tr>
';
if (is_array($articleID)) {
foreach ($articleID as $key => $value) {
// select all CMS variables of the article
//siedamod start
$sql = "SELECT * FROM ".$cfg["tab"]["content"]." WHERE idartlang = '$value' AND idtype = '1' AND typeid = '2'";
$db->query($sql);
$db->next_record();
$headline = $db->f("value");
//siedamod end
$sql = "SELECT * FROM ".$cfg["tab"]["content"]." WHERE idartlang = '$value' AND idtype = '1' AND typeid = '1'";
$db->query($sql);
$db->next_record();
$head = $db->f("value");
if ( strlen($head) > "CMS_VALUE[3]") {
$head = substr($head, 0, "CMS_VALUE[3]");
$head .= '..';
}
// link
$link = $sess->url("front_content.php?client=$client&lang=$lang&idcat=$selcat&idart=$linkID[$key]&m=$m&s=$s");
if (!is_object($tpl))
{
$tpl = new Template;
}
$tpl->set("s", "MEHR", mi18n("mehr..."));
echo '
<tr><td width="2"></td><td width="144"><img src="images/abstandshalter.gif" width="1" height="10"></td><td></td></tr>
<tr><td width="2"></td><td width="144"><span class="boxheader">'.urldecode($db->f("value")).'</span></td></tr>
<tr><td width="2"></td><td width="144"><img src="images/abstandshalter.gif" width="1" height="2"></td><td></td></tr>
<tr><td width="2"></td><td width="144"><span class="box">'.urldecode($headline).'</span></td></tr>
<tr><td width="2"></td><td width="144"><img src="images/abstandshalter.gif" width="1" height="2"></td><td></td></tr>';
$tpl->generate($cfgClient[$client]["path"]["frontend"]."templates/newsundevents.html");
} // end while
unset($headline);
unset($text);
} // end foreach
} // end if (is_array)
echo '
<tr><td colspan="3"> </td></tr>
<tr><td bgcolor="#7F7F7F" colspan="3"><img src="images/abstandshalter.gif" width="1" height="1"></td></tr>
</table><br>';
?>
das problem ist: ich bekomme den link nicht an template übergeben

gruesse rene