[TYPO3] <br /> removed in frontend using tt_news textbox

Stefan Kaufmann kaufmann at dwwd.ch
Sun Jan 7 13:48:39 CET 2007


Hi,

I resolved the problem. With the php function nl2br it worked. My code 
in the class file class.tx_ttnews.php in pi1 looks as follows:

$markerArray['###MISCELLANIOUS###'] = nl2br 
($this->local_cObj->stdWrap($row['tx_ttnewsaddfields_miscellanious'], 
$lConf['tx_ttnewsaddfields_miscellanious_stdWrap.']));

Hope it helps someone.
Stefan Kaufmann

Stefan Kaufmann wrote:
> Hello,
> 
> I am stuck with a problem regarding the parsing of content for the 
> Frontend.
> 
> I have extended tt_news by some additional fields (textbox/no RTE)
> If I enter text in BE and using linebrakes by pressing enter, those 
> linebreaks are not rendered in the frontend.
> 
> I use sg_newsplus to edit the news records and when viewing the records 
> thru sg_newsplus, a <br /> tag is inserted, creating the wanted linebreak.
> 
> I played around with different doctypes but no success. It seems there 
> is a difference though how tt_news and sg_newsplus render the content.
> Currently my doctype is HTML 4.0 Transitional.
> 
> Many thanks for inputs.
> Regards, Stefan Kaufmann


More information about the TYPO3-english mailing list