[TYPO3-ect] Alternatives to TS

JoH info at cybercraft.de
Thu May 18 15:49:22 CEST 2006


> Also what's a big problem is the inconsistency between different 
> typoscript ojects.
> a stdWrap is wrap but more powerfull, yet why didn;t we change all normal 
> wraps
> to stdWrap?

We don't do it, because stdWrap is anything else but a wrap. ;-)

stdWrap is a set of functions that can be applied to the content of an 
Element or another function.
Some of these functions are wraps, others will apply additional content 
elements to the content, again others will format the content in a special 
way, calculate values, check conditions, split the content into pieces and 
so on.

The only disadvantage I see with the current implementation of stdWrap is, 
that these functions are forced into a specific sorting order, making it 
impossible to execute some functions before others within the same setup.
i.E.:

doesn't work:

whatever = TEXT
whatever {
    dataWrap = whatever + whatever
    prioriCalc = 1
}

works:

whatever = TEXT
whatever {
    stdWrap.dataWrap = whatever + whatever
    prioriCalc = 1
}

This is where the recursive stdWrap function comes into play and this is why 
stdWrap can be a huge performance killer.
But I agree with you that it might be wise to improve TypoScript instead of 
introducing something new just for the sake of making things different than 
"ugly TS".

Joey 





More information about the TYPO3-team-extension-coordination mailing list