[Typo3] Limit the number of words...

Christopher tombedlam at yahoo.com
Wed Apr 13 03:29:41 CEST 2005


Hi Ries,

--- Ries van Twisk <typo3 at rvt.dds.nl> wrote:
> Hey all,
> 
> I have something like this:
> 
> temp.list.10.1 = TMENU
> temp.list.10.1 {
>   NO.allWrap = <h5>|</h5>
>   NO.allWrap.dataWrap = | <p>{field:subtitle}</p>
> }
> 
> 
> But I need to limit the number if words returned from 
> '{field:subtitle}', I am looking in tsref (windows help file version) 
> but I can't find the option for it...
> Anybody have a clue what's the name of the property???
> 


I'd guess you're going to have to do it slightly differently. The 'crop'
property of stdWrap in the TSref [1] will do something like what you need,
but I don't think it'll work on a 'wrap'. But you could use it in
combination with preCobj or postCobj properties of stdWrap:

NO.allWrap.preCobj = COA
NO.allWrap.preCobj {
  5 = HTML
  5.value.data = page:subtitle
  5.value.data.crop = 20|...|1
} 

Not tested, but I think it ought to work.


-Christopher



[1] http://typo3.org/documentation/document-library/doc_core_tsref/stdWrap/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the TYPO3-english mailing list