[TYPO3] avoid spacer-gif and br
Christopher Torgalson
bedlamhotel at gmail.com
Fri Aug 10 17:12:04 CEST 2007
Hi,
On 8/10/07, Ilaria De Marinis <ilaria.demarinis at caspur.it> wrote:
> Ok,
> thank you very much for your suggestions!!!
>
> Best regards
> Ilaria
>
> Tapio Markula wrote:
> > Ilaria De Marinis kirjoitti:
> >
> >> I commented these two lines in
> >> typo3/sysext/cms/tslib/class.tslib_content.php
> >>
> >> /function wrapSpace($content, $wrap) {
> >> $result = $content;
> >> if (trim($wrap)) {
> >> $wrapArray = explode('|',$wrap);
> >> $wrapBefore = intval($wrapArray[0]);
> >> $wrapAfter = intval($wrapArray[1]);
> >> if ($wrapBefore) {/
> >> * #ILARIA$result = '<img
> >> src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="1"
> >> height="'.$wrapBefore.'"'.$this->getBorderAttr('* border="0"').'
> >> class="spacer-gif" alt="" title="" /><br />'.$result;
> >> / }
> >> if ($wrapAfter) {/
> >> * #ILARIA$result.='<img
> >> src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="1"
> >> height="'.$wrapAfter.'"'.$this->getBorderAttr('* border="0"').'
> >> class="spacer-gif" alt="" title="" /><br />';
> >> /}
> >> }
> >> return $result;
> >> }/
> >> I think I won't need anytime these two tags.
> >> Hope help someone
> >>
> >
> > that's bad practise. wpapBefore and and wrapAfter are in some
> > TS Template - and they should be defined using approriate Template setup.
This is right. I'm pretty sure that CSS Styled Content does /not/ do
any spacer gif rendering (at least I never encountered any...), so I
assume you're using a different static template.
If you're using a static template (in your main TS template record)
like "Content" or "Default", remove it and use CSS Styled Content
instead.
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-english
mailing list