[TYPO3-irre] IRRE + dbal without pid :)
Nikolas Hagelstein
hagelstein at shr.cc
Thu May 3 14:31:50 CEST 2007
Oliver Hader wrote:
> There is a hook in TCEforms "getMainFields_preProcess". You could use
> this one to fake the pid of the parent/child record to the fixed
> value "76". Doing this should also prevent from screwing up the
> variable "inlineFirstPid" with nonsense.
Did that already and it worked. :)
But there is one issue left you probably could gimme a hand on:
The parent record isnt allowed to be save (readonly) but due to the fact
that
Inline childs get added at "saving time" i set :
$fieldArray = 0 withing processDatamap_postProcessFieldArray.
According to:
http://doxygen.frozenkiwi.com/typo3/html/dd/da6/class_8t3lib__tcemain_8p
hp-source.html#l00775
This should prevent the record from being saved.
I works quite well execpt for one thing:
If i add new an inline child to the parent record the parent records
"save" routine gets trigger anyway.
Any ideas?
> I didn't test it, but I think it could work. To get this working
> without the disposal of hooks IMO the DBAL should add the pid
> virtually to records if it's defined in the mapping.
Yes right but DBAL isnt aware of virtuall fields yet.
Bye,
Nikolas
More information about the TYPO3-project-irre
mailing list