[TYPO3] $this->local_cObj->stdWrap

Thorsten Kahler thorsten.kahler at dkd.de
Tue Jan 3 13:11:29 CET 2006


Hi Patrick,

Patrick Schlaepfer wrote:
> Thanks for the hint
> What I did
> 
>   $lConf_f['content_stdWrap.']['crop'] = '300 | ...';
>   $lConf_f['content_stdWrap.']['wrap'] = '<p>|</p>';
> 
>   $markerArray['###HOTEL_DESC###'] =
>                         $this->local_cObj->stdWrap($lrow['hotel_desc'],
>                         $lConf_f['content_stdWrap.']);
> 
> The line with 'crop' does work, the line with 'wrap'
> doesn't. Which templates do I have to include (content, cSet...)
> 
> A bit strange, I would say. The field 'hotel_desc' is a
> langauge dependable field, might this be the reason?
> 

this seems to be a little bit strange indeed. I'd guess the resulting HTML
code is passed through a parseFunc, that strips off the <p>-tags you added
before. You can try to
debug($markerArray['###HOTEL_DESC###'], 'HOTEL_DESC' );
the value you just generated in your code before it's returned.

Regards
Thorsten



More information about the TYPO3-english mailing list