[Typo3-dev] Order of stdWraps

Peter Niederlag niederlag at ikd01.de
Thu Mar 31 17:04:31 CEST 2005


Hi,

Michael Stucki schrieb:
> Hello,
> 
> in the last few days I often had problems with stdWraps being executed in a
> not so optimal order.
> 
> Example:
> mytext.crop = 22 | X | 1
> mytext.listNum = 0
> mytext.listNum.splitChar = X
> 
> Unfortunately this does not work because crop is handled after the listNum
> property.

mmmhh. I guess that's what I would expect or most likely would want. ;(

> Questions are:
> - How do you handle this? (I hate to nest cObjects only for this)

well, imho only (easy) way for flexible solution. ;)

> - Should we think about the order of these statements?

seems like a difficult task to me ....

> - In this special case: Is there any reason for not moving "crop" right
>   before "splitChar"?

Never used those two together yet, still I would rather think crop comes 
after listNum?

Cheers,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
http://www.typo3partner.net * professional services network *




More information about the TYPO3-dev mailing list