[Typo3] Wrapping of css_styled_imgtext
Robert Markula
robert.markula at gmx.net
Sun May 22 11:13:16 CEST 2005
When using css_styled_imgtext, the extension wraps the IMGTEXT content
element in various ways.
These wraps seem to be hardcoded. To edit (or remove them), use the
information below.
Open the file
/typo3conf/ext/css_styled_imgtext/pi1/class.tx_cssstyledimgtext_pi1.php
in an text-editor. The linenumbers refer to css_styled_imgtext version
0.1.0.
Note: The tabstops have been replaced with spaces for better readability.
########################################################
###TO EDIT THE <DL> IN WHICH EACH IMAGE IS WRAPPED IN###
########################################################
###Replace the text (Line 50)###
foreach($imgsTag as $key => $imgTag) {
$images .= '
<dl class="csi-image">
<dt>'.$imgTag.'</dt>
<dd class="csi-caption"> '.$captionArray[$key].' </dd>
</dl>
###with###
<dl class="csi-image">
<dt>'.$imgTag.'</dt>
<dd> '.$captionArray[$key].' </dd>
</dl>
#####################################
###REMOVE THE WRAPPING OF THE TEXT###
#####################################
###Replace the text (Line 61)###
$content = '<div class="csi-text">'.$content.'</div>';
###with###
$content = ' '.$content.' ';
################################################
###REMOVE THE WRAPPING OF THE CONTENT ELEMENT###
################################################
###Replace the text (Line 69)###
switch ($position) {
case 0: // textpic-above-centre
$output = '<div
class="'.$class.$this->classDefinitions[$position].'">'.$imagebox.$content.'</div>';
break;
case 8: // textpic-below-centre
$output = '<div
class="'.$class.$this->classDefinitions[$position].'">'.$content.$imagebox.'</div>';
break;
case 1: // textpic-above-right
case 2: // textpic-above-left
$output = '<div
class="'.$class.$this->classDefinitions[$position].'">'.$images.$content.'</div>';
break;
case 9: //textpic-below-right
case 10: // textpic-below-left
$output = '<div
class="'.$class.$this->classDefinitions[$position].'">'.$content.$images.'<!--
keep it in the box! --><div style="clear:both;"></div></div>';
break;
case 17: // textpic-intext-right
case 18: // textpic-intext-left
case 25: // textpic-intext-right-nowrap
case 26: // textpic-intext-left-nowrap
$output = '<div
class="'.$class.$this->classDefinitions[$position].'">'.$images.$content.'<!--
keep it in the box! --><div style="clear:both;"></div></div>';
###with###
switch ($position) {
case 0: // textpic-above-centre
$output = ' '.$imagebox.$content.' ';
break;
case 8: // textpic-below-centre
$output = ' '.$content.$imagebox.' ';
break;
case 1: // textpic-above-right
case 2: // textpic-above-left
$output = ' '.$images.$content.' ';
break;
case 9: //textpic-below-right
case 10: // textpic-below-left
$output = ' '.$content.$images.' ';
break;
case 17: // textpic-intext-right
case 18: // textpic-intext-left
case 25: // textpic-intext-right-nowrap
case 26: // textpic-intext-left-nowrap
$output = ' '.$images.$content.' ';
More information about the TYPO3-english
mailing list