[TYPO3] Hook when saving content element in BE

serge vleugels serge at dwmv.be
Thu Jun 7 16:47:50 CEST 2007


On Thu, 2007-06-07 at 16:42 +0200, serge vleugels wrote:
> On Thu, 2007-06-07 at 15:58 +0200, Matthias Stuebner wrote:
> > On Thu, 7 Jun 2007 15:46:25 +0200, Matthias Stuebner wrote:
> > 
> > > Is there a way to modify $incomingFieldArray in the way I would like?
> > 
> > Maybe important: More detailed the thing I miss is that the data I set (and
> > which can be verified even in the post-Hook doesn't get shown in the form.
> > How can I achive this?
> 
> i use processDatamap_afterDatabaseOperations hook
> and in my function i reference the variables :
> processDatamap_postProcessFieldArray ($status, $table, $id, &
> $fieldArray, &$pObj)
> 
> this way i can modify and add data to the field array, since i reference
> the pObj variable, i use it to return warning and errors to the editor
> 
> hope this helps,
> 
> Serge
> 

Oh yes,

If you want data stored in fields not editable by the user, define them
in the tca, but do not put them in the types array, i have used it this
way and works like a charm, or better, put them in the types array, but
dont give none admins access (using "exclude" => 1 in the tca)



More information about the TYPO3-english mailing list