[TYPO3] lib vs temp in setup?

Matthew Manderson matthew at manderson.co.uk
Sat Jul 8 14:27:57 CEST 2006


> Does anyone know the practical advantages of using lib or temp in setup
> templates?

And then he finds...

>NOTE: 
>If lib.stdheader was temp.stdheader instead, the pointer would not 
>work! This is due to the fact that the runtime-reference would find 
>nothing in "temp." as this is unset before the template is stored 
>in cache!   

lib allows you reuse the exact object again elsewhere whereas temp you
cannot.

So to conclude, I should use temp where possible but if I need to reuse the
object elsewhere and temp is not producing the expected results then use
lib instead.

:-)




More information about the TYPO3-english mailing list