[TYPO3] Using COA for configuring one's extension

Xavier Perseguers typo3 at perseguers.ch
Thu Jul 17 16:33:22 CEST 2008


> What I would like to achieve would be something like that:
> 
> plugin.my_extension_pi1 {
>     parameter1 = COA
>     parameter1.10 = TEXT
>     parameter1.10 {
>         field = myfield
>         wrap = <strong>|</strong>
>     }
> }
> 
> I want TYPO3 to handle the COA itself, but call me back when dealing 
> with a certain field such as "field = SONG:Artist" that should be 
> handled by myself.

I found something here:
http://wiki.typo3.org/index.php/TypoScript_-_PHP_Interaction#The_COA_method

The question keeps as simple as:

Having

plugin.my_extension_pi1 {
	parameter1 = COA
	parameter1.10 = TEXT
	parameter1.10.field = SONG:Artist
	parameter1.10.wrap = <strong>|</strong>
}

Should I preprocess the configuration array to change it to

parameter1.10.value = Jimmy Hendricks

before passing it to cObj->cObjGet()

Or is there a callback mechanism somehow available?

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html


More information about the TYPO3-english mailing list