[TYPO3-dam] Question about the hooks in class.tx_dam_db.php

Torsten Schrade schradt at uni-mainz.de
Mon Aug 8 17:34:27 CEST 2011


Hi list,

I'm using the insertMetaTrigger/updateMetaTrigger hooks in
class.tx_dam_db.php to do some metadata processing during file upload.

Maybe I'm wrong but is it correct that $meta only contains the standard
DAM fields and no fields from extensions?

In my case I have extended DAM with some additional metadata fields but
they do not appear during the hook calls. I think this is because before
the hooks are called, tx_dam_db::cleanupRecordArray('tx_dam', $meta) is
called and that will kick out any fields from extensions since $row in
that function for some reasons only contains the standard DAM fields...

What do you think about this behaviour? In my opinion $meta should
certainly contain all fields that are in the DAM table...

Best regards,
Torsten


More information about the TYPO3-project-dam mailing list