[Typo3-dev] where to get PID in tca.php?
Kraft Bernhard
kraftb at gmx.net
Tue Sep 6 13:20:09 CEST 2005
Christoph Hofer wrote:
> hello!
>
> what is the proper way to gain the PID for a record being edited or
> created in tca.php? you can extract it from the returnUrl= string, but
> that is not too pretty, is it. ;)
In tca.php there aren't any records created nor deleted and not edited.
tca.php is just a "description" file describing your tables in php so TYPO3
understands what the fields in each table represent.
If you mean by "for a record being edited or created" the Record-Editing Screen
of Typo3 (alt_doc.php) then you should know that all record-processing is done
in t3lib/class.t3lib_tcemain.php. TCE is a class used for inserting,editing and
deleting records ...It is well documented in the TYPO3 Core API docs:
http://typo3.org/documentation/document-library/doc_core_api/Introduction-063c07c172/
You can "hook" into this class and let your own classes perform taska whenever soemthing
gets done with a record ...
hope this helps,
Bernhard
--
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50
More information about the TYPO3-dev
mailing list