[TYPO3-formidable] form not submitting ???

JéŽrô™me Schneider j.schneider at ameos.com
Thu Sep 23 15:17:04 CEST 2010


Hi.
Yes, you also have to change something in ext_localconf.php

t3lib_extMgm::addPItoST43(..., 1);  // note: 1 here means "do cache"

has to become

t3lib_extMgm::addPItoST43(..., 0);  // note: 0 here means "do not cache"

And then clear your TYPO3 cache.

Regards,
Jerome Schneider

Le 23/09/10 15:02, Andres Toomsalu a écrit :
> Im running 1.1.0. I did put back USER_INT=1 in pi-s class main()
> function but that did not seem to help anymore - is there anywhere else
> something that needs to be changed in order to run plugin again as
> non-cached?
>
> ----------------------------------------------
> Andres Toomsalu, andres at active.ee
>
>
>
>
> JéŽrô™me Schneider wrote:
>> Hi Andres,
>> You pointed it just right: formidable cannot refresh your plugin
>> display if the plugin is cached, thus resulting in the behaviour you
>> described.
>> Formidable may be cached for application that don't require user
>> interractions based on POST (as TYPO3 cannot hash POST to handle
>> different cached versions of the same page; furthermore, it's unlikely
>> that the POST'd content should be cached)
>>
>> Two possible solutions:
>> * add &no_cache=1 in your form action (by setting meta/form/action to
>> what you need
>> * run all your interactive POST'd forms in USER_INT objects
>>
>> Hope this helps,
>> Jerome Schneider
>>
>> BTW: are you using version 1.1.0 as you XML header says or version 2.x ?
>>
>> Le 16/09/10 08:11, Andres Toomsalu a écrit :
>>> I have multiple plugin interfaces in this FE plugin - when executing
>>> this xml in pi1 it works, but not in pi2. Can't find the difference what
>>> causes form not to submit. Only difference I know is that in kickstarter
>>> pi2 was USER and I later change it to USER_INT manually in pi2 class
>>> main function.
>>>
>>> ----------------------------------------------
>>> Andres Toomsalu, andres at active.ee
>>>
>>>
>>>
>>>
>>> Andres Toomsalu wrote:
>>>> Im failing to understand why this simple code suddenly does not work
>>>> anymore - form data wont be submitted and datahandler does not run -
>>>> what is wrong here? If Im changing some textfield name to something
>>>> else which not in database Ill get post with error - but in normal
>>>> case no INSERT - what Im missing here?
>>>>
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>>>> <formidable version="1.1.0"
>>>> xmlns:datahandler="http://www.ameos.com/formidable/1.1.0/datahandler"
>>>> xmlns:datasource="http://www.ameos.com/formidable/1.1.0/datasource"
>>>> xmlns:renderer="http://www.ameos.com/formidable/1.1.0/renderer"
>>>> xmlns:renderlet="http://www.ameos.com/formidable/1.1.0/renderlet"
>>>> xmlns:validator="http://www.ameos.com/formidable/1.1.0/validator"
>>>> xmlns:actionlet="http://www.ameos.com/formidable/1.1.0/actionlet">
>>>> <meta>
>>>> <name>Standard XML file</name>
>>>> <form formid="healthlog_entry"/>
>>>> <debug>false</debug>
>>>> <displaylabels>true</displaylabels>
>>>> <defaultLLL>EXT:b_sports_and_health/pi2/locallang.xml</defaultLLL>
>>>> </meta>
>>>> <control>
>>>> <datahandler:DB>
>>>> <tablename>tx_bsportsandhealth_healthlog</tablename>
>>>> <keyname>uid</keyname>
>>>> <process>
>>>> <beforeInsertion>
>>>> <userobj>
>>>> <php><![CDATA[/*<?*/
>>>>
>>>> $aData = $this->getUserObjParams();
>>>> debug($aData, 'aData: ');
>>>> // Inserting sysfields in array going to DB
>>>> if($this->oDataHandler->_creation()) {
>>>> $aData["crdate"] = time();
>>>> $aData["pid"] = $this->oParent->getPid();
>>>> $aData["cruser_id"] = $GLOBALS["TSFE"]->fe_user->user["uid"];
>>>> $aData["user"] = $aData["cruser_id"];
>>>> }
>>>> $aData["tstamp"] = time();
>>>> debug($aData, 'aData: ');
>>>> return $aData;
>>>>
>>>> /*?>*/]]></php>
>>>> </userobj>
>>>> </beforeInsertion>
>>>> </process>
>>>> </datahandler:DB>
>>>> <renderer:STANDARD/>
>>>> </control>
>>>> <elements>
>>>> <!-- BOX CONTAINER FOR INPUT FORM -->
>>>> <renderlet:BOX name="healthformbox">
>>>> <childs>
>>>> <!-- HEALTH ENTRY DATE FIELD --> <renderlet:DATE name="date"
>>>> label="LLL:date">
>>>> <data>
>>>> <defaultValue>
>>>> <userobj>
>>>> <php>
>>>> <![CDATA[
>>>> $today = date('d.m.Y');
>>>> return $today;
>>>> ]]>
>>>> </php>
>>>> </userobj>
>>>> </defaultValue>
>>>> <datetime format="%d.%m.%Y" allowManualEdition="true"/>
>>>> </data>
>>>> </renderlet:DATE>
>>>> <renderlet:TEXT name="pulse" label="LLL:pulse"/>
>>>> <renderlet:TEXT name="pressuretop" label="LLL:pressuretop"/>
>>>> <renderlet:TEXT name="pressurebottom" label="LLL:pressurebottom"/>
>>>> <renderlet:SUBMIT name="btn-submit" label="LLL:submit_button_label"/>
>>>> </childs>
>>>> </renderlet:BOX>
>>>> </elements>
>>>> </formidable>
>>>>
>>>>
>>
>> _______________________________________________
>> TYPO3-project-formidable mailing list
>> TYPO3-project-formidable at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-formidable



More information about the TYPO3-project-formidable mailing list