[TYPO3-english] Crop content

Tapio Markula tapio.markula at xetpoint.fi
Mon Oct 20 17:34:39 CEST 2008


Tyler Kraft kirjoitti:
> You could use the stripHtml=1


Does not do what I want - I would like to *keep* the HTML - it should 
not be stripped at all. But apparently I can't add anything after 
NO.after - or it should be COA, but how then create correct result.
> 
> 
> 
> Tapio Markula wrote:
>> Tyler Kraft kirjoitti:
>>> Hey Tapio,
>>>
>>> No. But you could always add the h2 as the main part of the menu, and 
>>> then ass the abstract as an "after" cObject - that way you could crop 
>>> it using the stdWrap properties
>>
>> Now new problem
>>
>>
>>   1.NO.after{
>>   data=field:abstract
>>   crop=180
>>   stdWrap.dataWrap(
>>
>>                                     <p>|...</p>
>>                                     <p class="readMore"><a 
>> href="index.php?id={field:uid}"><b>Lue&nbsp;lisää&nbsp;<img 
>> src="fileadmin/template/kuvat/nuoli.gif" alt="" height="7" 
>> width="9"></b></a></p>
>>                                     </td></tr>
>>                                     )
>>  }
>>
>> the value 'crop' crops also the html content, not just the content 
>> from the field 'abstract'


More information about the TYPO3-english mailing list