[TYPO3-english] problem upgrade from 4.2.5 to 4.5.16

David Banning david at skytracker.ca
Sat Jun 23 19:55:34 CEST 2012


I notice when inserting a content element of type
"text with image" the older version of Typo3 inserts a;

<a id="c2576"></a><img src="clear.gif" width="1" height="15" class="spacer-gif" alt="" title="" /><br />

which provides a space underneath the Title.  I have so many pages and
I don't want to go through every one to add space again.
I am wondering where this content is added. I usually search using
the Typoscript Object Analyser to get an idea but I am not getting
anywhere on this one.

The line seems to come from the file;

typo_src/typo3/sysext/cms/tslib/class.tslib_content.php

Which exists in both versions of Typo3 and points to this function;

-------------------------------------------------------

/**
          * Adds space above/below the input HTML string. It is done by adding a clear-gif and <br /> tag before and/or after the content.
          *
          * @param       string          The content to add space above/below to.
          * @param       string          A value like "10 | 20" where the first part denotes the space BEFORE and the second part denotes the space AFTER (in pixels)
          * @return      string          Wrapped string
          */
         function wrapSpace($content, $wrap)     {
                 $result = $content;
                 if (trim($wrap))        {
                         $wrapArray = explode('|',$wrap);
                         $wrapBefore = intval($wrapArray[0]);
                         $wrapAfter = intval($wrapArray[1]);
                         if ($wrapBefore)        {
                                 $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) {
                                 $result.='<img src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="1" height="'.$wrapAfter.'"'.$this->getBorderAttr(' border="0"').' class="spacer-gif" alt="" title="" /><br />';
                         }
                 }
                 return $result;
         }

-------------------------------------------------------

but I cannot seem to find out why it is added in the older version of Typo3 and how I might include it in the newer version.

Any pointers would be helpful.



More information about the TYPO3-english mailing list