[TYPO3-dev] id in preProcess hook for new record

Kay Strobach typo3 at kay-strobach.de
Wed Apr 25 08:34:04 CEST 2012


Hi,

Dimitry is right, you can just access the id in the postProcessHook.

Regards
Kay



Am 25.04.2012 08:17, schrieb Dmitry Dulepov:
> Hi!
> 
> Dawid Pacholczyk wrote:
>> Hello I need to make some actions on fields in preProcess hook but to do
>> this I need the id of news. I can get it when i update record but how
>> can I get it when I add record.
> 
> It is not available in the preProcess hook becase the record is not yet
> in the database.
> 


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful: https://flattr.com/profile/kaystrobach



More information about the TYPO3-dev mailing list