[TYPO3-project-formidable] do something after a form is saved
Asbjørn Morell
atm at inmedia.dk
Fri May 25 15:13:21 CEST 2007
Thanks.
Works great ;)
Best regards.
Asbjørn Morell.
On 5/25/07, Jerome Schneider <j.schneider at ameos.com> wrote:
> Hello :)
>
> Yeah you have to place your actionlet inside a tag
> <actionlets></actionlets>, which defines the collection of actions to do.
>
> Regards, jerome
>
>
> Asbjørn Morell a écrit :
> > Hello,
> >
> > After the form below is saved, I would like to execute a custom query.
> > (insert a record into my tx_myart_images_mm)
> > I tried with a <actionlet:USEROBJ> however the actionlet does not
> > execute when form is submitted.
> >
> > Any ideas?
> >
> > Best regards.
> > Asbjørn Morell.
> >
> >
> >
> >
> > <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
> > <formidable version="0.7.1">
> > xmlns:datahandler="http://ameos.com/formidable/071/datahandler"
> > xmlns:renderer="http://ameos.com/formidable/071/renderer"
> > xmlns:renderlet="http://ameos.com/formidable/071/renderlet"
> > xmlns:validator="http://ameos.com/formidable/071/validator"
> > xmlns:actionlet="http://ameos.com/formidable/071/actionlet"
> >
> > <meta>
> > <name>Image</name>
> > <form formid="tx_myart_images" />
> > <displaylabels>true</displaylabels>
> > <debug>false</debug>
> > </meta>
> >
> > <control>
> >
> > <datahandler:DB>
> > <tablename>tx_myart_images</tablename>
> > <keyname>uid</keyname>
> > <labelname>title</labelname>
> > </datahandler:DB>
> >
> > <renderer:STANDARD/>
> >
> > <actionlet:USEROBJ>
> > <userobj>
> > <php><![CDATA[
> >
> > //my code to run after the form is saved
> > //echo $myForm->oDataHandler->_currentEntryId();
> >
> >
> > // data from the form
> > // t3lib_div::debug() if you don't
> > // know it's structure ;)
> > //$aData = $this->oDataHandler->_getFormData();
> >
> > ]]>
> > </php>
> > </userobj>
> > </actionlet:USEROBJ>
> >
> > </control>
> >
> > <elements>
> >
> > <renderlet:TEXT name="title" label="title *">
> > <process>
> > <userobj>
> > <php><![CDATA[
> >
> > return $this->_oParent->_imagesCheckAccess();
> >
> > ]]></php>
> > </userobj>
> > </process>
> > </renderlet:TEXT>
> >
> > <renderlet:FILE name="image" label="Image">
> > <data>
> > <targetdir>fileadmin/myart/</targetdir>
> >
> > <includexml>EXT:ameos_formidable/res/shared/xml/imageprocess/shaded-w100.xml</includexml>
> >
> > </data>
> > <process>
> > <userobj>
> > <php><![CDATA[
> >
> > return $this->_oParent->_imagesCheckAccess();
> >
> > ]]></php>
> > </userobj>
> > </process>
> > </renderlet:FILE>
> >
> > <renderlet:SUBMIT name="submit" label="Submit" />
> >
> > </elements>
> >
> > </formidable>
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
>
--
Mvh Asbjørn Morell
More information about the TYPO3-project-formidable
mailing list