Hallo,
bei mir funktioniert spaceBefore / spaceAfter nicht 🙁 . Egal was ich eintrage, der Abstand ist immer gleich.
Hat jemand eine Idee?
Mfg
Günter
Hallo,
bei mir funktioniert spaceBefore / spaceAfter nicht 🙁 . Egal was ich eintrage, der Abstand ist immer gleich.
Hat jemand eine Idee?
Mfg
Günter
Anscheinend gibt es noch Probleme mit CSS Styled Content und diesen Attributen. Ich habe deshalb <class tx_cssstyledcontent_pi1> erweitert, wie dies Simon Weber vorschlägt erweitert:
class tx_cssstyledcontent_pi1 extends tslib_pibase {
var $prefixId = "tx_cssstyledcontent_pi1"; // Same as class name
var $scriptRelPath = "pi1/class.tx_cssstyledcontent_pi1.php"; // Path to this script relative to the extension dir.
var $extKey = "css_styled_content"; // The extension key.
var $conf = array();
function main($content,$conf) {
$this->conf = $conf;
$CTypeValue = (string)$this->cObj->data["CType"]; // This value is the Content Element Type - determines WHAT kind of element to render...
$content="";
switch($CTypeValue) {
case "header":
$content = $this->getHeader().$this->render_subheader();
break;
case "bullets":
$content = $this->getHeader().$this->render_bullets();
break;
case "table":
$content = $this->getHeader().$this->render_table();
break;
case "text":
$content = $this->getHeader().$this->render_text();
break;
case "image":
$content = $this->getHeader().$this->render_image();
break;
case "textpic":
$content = $this->render_textpic();
break;
case "list":
$content.=$this->getHeader();
default:
$content.= $this->cObj->cObjGetSingle($conf[$CTypeValue],$conf[$CTypeValue."."],"CType: ".$CTypeValue);
break;
}
#debug($CTypeValue);
#debug(array($content));
if (!$this->conf["noANameTagForFirstRecord"] || $this->cObj->parentRecordNumber>1) {
$content='<a name="'.$this->cObj->data["uid"].'"></a>'.$content;
}
// #$# 27.04.2004 GW: Added to support spaceBefore & spaceAfter
if(($this->cObj->data["spaceBefore"] > 0) || ($this->cObj->data["spaceAfter"] > 0)) {
$temp = "<div
style="padding-top:".$this->cObj->data["spaceBefore"]."px;padding-bottom:".$this->cObj->data["spaceAfter"]."px;">";
$temp .= $content;
$temp .= "</div>";
$content = $temp;
}
//End Modifications
return $content;
}