[TYPO3] $this->local_cObj->stdWrap

Patrick Schlaepfer patrick at schlaepfer.com
Tue Jan 3 13:27:51 CET 2006


The point is somewhere else.
The content of the rte field gets rendered correctly, with
the 'wrap' function - didn't notice that before, change
for testing to <font= ....>|</font>
Now I do have at the beginning of the 'hotel_desc'
<font=...>text</font> But there are no linebreaks in
as in the rte field.
$lConf_f['content_stdWrap.']['br'] = '1';
Then the <p> in the rte field (when editing in the backend)
gets <br/> and saw that there is also a parameter which
says what 'br' is.
Not sure if this is the correct way. Will add some
other HTML markers as <b> too what happens.
Thanks anyway...

> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>





More information about the TYPO3-english mailing list