[TYPO3] $this->local_cObj->stdWrap

Patrick Schlaepfer patrick at schlaepfer.com
Tue Jan 3 11:36:06 CET 2006


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?


> Hi Patrick,
>
> Patrick Schlaepfer wrote:
>> Wrote an extension, there are some rte fields. Editing is ok. If
>> I have a look directly into the db table, there is no formatting as <p>
>> in the db. Guess it will be added by typo3 while the field is rendered.
>> So tried
>>
>> $lConf['subheader_stdWrap.']['crop'] = '300 | ...';
>> $lConf['content_stdWrap.'] = '<p>|</p>';
> try:
> $lConf['content_stdWrap.']['wrap'] = '<p>|</p>';
>
>>
>> $markerArray['###HOTEL_DESC###'] =
>> 	$this->local_cObj->stdWrap($lrow['hotel_desc'],
>> 	$lConf);
>>
>> But has no influnce no the output. Just want to format it.
>> Content is ok, but there are no linebreaks.
>>
>> Thanks
>>
>>
>
> 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