Seite 1 von 1

Problem mit Fliesstextmodul

Verfasst: Mo 8. Dez 2003, 11:06
von schmitt197
Hi,
ich habe mir von www.contenido-module.de das Modul Fliesstext gezogen.
Funktioniert auch alles, aber der text ist fett geschrieben und ich weiß nicht, wo ich das ändern kann. Kann mir mal bitte jemand weiterhelfen?

Danke

Hier der Code

Code: Alles auswählen

INPUT:
echo "<table align=\"left\" cellpadding=\"0\" cellspacing=\"0\">
<tr valign=\"top\">
<td width=\"202\">".$mod["font"]." Fliesstext:</td>
<td><select name=\"CMS_VAR[0]\" size=\"1\">";
if ("CMS_VALUE[0]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
for ($i=1; $i<=50; $i++) {
if ($i != "CMS_VALUE[0]") {
echo "<option value=\"$i\">Font $i</option>";
} else {
echo "<option value=\"$i\" selected>Font $i</option>";
}
}
echo "</SELECT></td>
</tr><tr valign=\"top\">
<td width=\"202\">".$mod["font"]." Beschreibung:</td>
<td><select name=\"CMS_VAR[1]\" size=\"1\">";
if ("CMS_VALUE[1]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
for ($i=1; $i<=50; $i++) {
if ($i != "CMS_VALUE[1]") {
echo "<option value=\"$i\">Font $i</option>";
} else {
echo "<option value=\"$i\" selected>Font $i</option>";
}
}
echo "</SELECT></td></tr></table>
<input type=\"hidden\" name=\"CMS_VAR[2]\" value=\"".$value."\">";

Code: Alles auswählen

OUTPUT:
<?
$tmp_img1 = "CMS_IMG[1CMS_VALUE[2]]";
$tmpImgDescr1 = "CMS_IMGDESCR[1CMS_VALUE[2]]";
echo "<table width=100% border=0><tr><td align=left>";
echo "<div style=\"float:left; border:none 3px; border-with: 3px; text-align:left; margin-right:10px; margin-bottom:10px \">";
if ($tmp_img1)
{
  echo "<IMG SRC=\"CMS_IMG[1CMS_VALUE[2]]\" ";
  if($edit != "true")
  {
    echo "ALT=\"CMS_IMGDESCR[1CMS_VALUE[2]]\">";
  }
  else 
  {
    echo ">";
  }
}
if ($tmpImgDescr1 !="") {
  echo ("<br><span id=fontCMS_VALUE[1]> CMS_IMGDESCR[1CMS_VALUE[2]] </span></div>");
}
else 
{
  echo "CMS_IMGDESCR[1CMS_VALUE[2]]</div>";
}
echo "</p><p><span id=\"fontCMS_VALUE[0]\">CMS_TEXT[1CMS_VALUE[2]]<br style=clear:all></span></p>";
echo "</td></tr></table>";
?>

Verfasst: Di 9. Dez 2003, 08:16
von agon
Hallo,

hast Du 'mal nachgeschaut, ob der Font, den Du mir CMS_VALUE[0] auswählst, im Stylesheet bold definiert ist (bzw., falls CMS_VALUE[0] leer ist, ob font selbst auf bold gesetzt ist) ?

Gruß
Andreas

doofe Frage

Verfasst: Di 23. Dez 2003, 20:39
von project gonzo
Hab mal ne doofe Frage:
Was, Wofür braucht man so ein Fleßtextmodul, oder was ist das??? :oops:

Verfasst: Mi 24. Dez 2003, 08:22
von schmitt197
Fliesstext heißt das, wenn ein Bild im Text steht (links, rechts oder zentriert) und der TExt aussen rum fliesst. Ist ganz schön, weil du sonst mit nem Bild das Problem hast, dass der Text erst unter dem Bild anfängt. Aber mein Problem kann man auch mit CSS lösen. Einfach img-Tag margin-left/-right geben und dann geht das. Zumindest bei mir.

Frohe Weihnachten. :twisted:

bsp

Verfasst: Do 25. Dez 2003, 00:27
von project gonzo
aha... :roll:

haste ne beispielseite oder so?