[TYPO3-dev] Hook proposal for alt_doc.php
David Bruehlmeier
typo3 at bruehlmeier.com
Mon Jul 10 17:51:26 CEST 2006
Hi Bernhard,
> Pass the "$incomingFieldArray" as reference (&) and set it to an empty
> array.
I tried that as well, it results in the following error message:
"1: Attempt to insert record on page '[root-level]' (0) where this
table, tx_myext, is not allowed"
And if I'm not mistaken, this is because the PID cannot be determined
from the $incomingFieldArray.
All in all, IMO the _only_ option to keep TCE-Main from saving records
once it's started is by using the processDatamap_postProcessFieldArray
hook by unsetting $fieldArray. And doing so - according to Kasper's
comment in the source - can be dangerous for mm-relations and files.
Since I currently don't need files nor mm-relations, I am using that
hook. But I would feel more comfortable either:
a) using the proposed hook in alt_doc.php which would enable me to avoid
TCE-main completely
b) get another option in TCE-main (maybe a hook earlier on?) to exit
"clean" without risking to produce "dead" records or files.
Greetings,
Dave.
More information about the TYPO3-dev
mailing list