[TYPO3] Is there something like insertData in postUserFunc?
Dmitry Dulepov [typo3]
dmitry at typo3.org
Mon Sep 22 12:37:23 CEST 2008
Hi!
Joerg Wagner wrote:
> The getData method seems not to work for field data originating from TV
> FCEs.
It does but differently because FCE fields are not real fields.
> E.g. if you have an FCE with a select type data element with field name
> 'field_myselect' and you want to access the item that the user has
> chosen from all the select items in a TypoScriptObjPath (e.g.
> 'lib.myTSobj'), then this works in TS:
> lib.myTSobj = TEXT
> lib.myTSobj.field = field_myselect
> But this does NOT work in a postUserFunc PHP method:
> $this->cObj->getData('field_myselect', null);
> This works instead:
> $this->cObj->data['field_myselect'];
getData() is not the same as data[]. getData gives you processed value but data[] contains raw values.
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/tag_your_typo3_extension_releases_in_svn/
More information about the TYPO3-english
mailing list