[TYPO3-dev] TCA passthrough
Boros Attila
attila at thebat.net
Sat May 15 10:12:51 CEST 2010
Hello Lars,
Saturday, May 15, 2010, 10:48:57 AM, you wrote:
LH> Hi Boros,
LH> Boros Attila wrote:
>> If I have to use a passthrough for this, how do I set it's value? The
>> scenario is this: backend user uses the List module to create a new
>> record on a page. When he saves the record, my frontend plugin code is
>> not executed, TYPO3 takes care of saving the data. I would like to do
>> something like:
>>
>> 'type' => 'passthrough',
>> 'value' => 'myClass->myMethod'
>>
>> but I'm afraid there is no such thing.
LH> Of course there is, but it's called "user".
LH> Have a look at:
LH> http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/#id2526955
LH> There some special requirements for you to use this TCA fieldname. I.e.
LH> you have to render the field in the backend form youself, but have a
LH> look at the docs, it's all in there :)
Well I don't want to render the field in the backend. I need to set a
value based on user input when the record is saved. With 'type' =>
'user' I could set the value of an input field. I could make that
read only but the value would be set when the form is displayed, not
when the user saves the record. Setting the value when the user saves
the record is importnat because it's based on the value of another
field (not yet known when the form is displayed).
Thanks anyway,
Attila
More information about the TYPO3-dev
mailing list