Zum Inhalt springen

"Linie danach" - Breite ändern

Erstellt am 9. Juni 2004 · 2 Antworten · letzte Antwort am 6. Oktober 2004

Tags: Inhaltselemente, HTML & CSS, Frage

matthesius ·

Hallo,

ich möchte gerne die "Linie danach" (Nach einem Content Element, über das drop-down Rahmen eingestellt) in der Breite ändern.
Mit welchen Einstellungen kann ich das vornehmen?

Grüße

Peter

JuergenW ·

Habe hierfür leider auch noch keine Lösung. Die Tabelle ist immer 99% breit, ich brauch aber 100%. Wer kann uns helfen ???

matthesius ·

Hallo,

hab' die Lösung gefunden! Leider ist die 99% - Angabe hart gecoded:

datei tslib/class.tslib_content.php

im unten dargestellten code einfach 99% durch den gewünschten wert ersetzen. (bei mir in zeile 1406 -typo3 3.6.2 *.zip-)

/**
	 * Rendering the cObject, HRULER
	 *
	 * @param	array		Array of TypoScript properties
	 * @return	string		Output
	 * @link http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[extUid]=270&tx_extrepmgm_pi1[tocEl]=362&cHash=2a462aa084
	 */
	function HRULER ($conf)	{
		$lineThickness = t3lib_div::intInRange($this->stdWrap($conf['lineThickness'],$conf['lineThickness.']),1,50);
		$lineColor = $conf['lineColor'] ? $conf['lineColor'] : 'black';
		$spaceBefore = intval($conf['spaceLeft']);
		$spaceAfter = intval($conf['spaceRight']);
		$tableWidth = $conf['tableWidth'] ? $conf['tableWidth'] : '99%';
		$content='';

		$content.='<table border="0" cellspacing="0" cellpadding="0" width="'.htmlspecialchars($tableWidth).'"><tr>';
		if ($spaceBefore)	{$content.='<td width="1"><img src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="'.$spaceBefore.'" height="1" alt="" title="" /></td>'; }
		$content.='<td bgcolor="'.$lineColor.'"><img src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="1" height="'.$lineThickness.'" alt="" title="" /></td>';
		if ($spaceAfter)	{$content.='<td width="1"><img src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="'.$spaceAfter.'" height="1" alt="" title="" /></td>'; }
		$content.='</tr></table>';

		$content = $this->stdWrap($content, $conf['stdWrap.']);
		return $content;
	}