[TYPO3-project-formidable] hide/ignore input form at runtime
Asbjørn Morell
atmorell at gmail.com
Wed May 23 13:24:44 CEST 2007
Hello
Does formidable have a feature to completely ignore/hide an input form? So
far I have handled it from my main php script - but if possible I would like
to do that logic in my xml file. <process> works with <renderlets> but I
don't want to have a <process> with the same code in each of my 11
<renderlets>
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>Art</name>
<form formid="my_artform" />
<displaylabels>true</displaylabels>
<debug>false</debug>
</meta>
<control>
<datahandler:DB>
<tablename>tx_myart_art</tablename>
<keyname>uid</keyname>
<labelname>title</labelname>
<process>
<beforeinsertion>
<userobj>
<php><![CDATA[
$this->_oParent->loggedIn();
$aData = array_pop(func_get_args());
$aData["pid"] = 25;
$aData["crdate"] = time();
$aData["cruser_id"] = $GLOBALS["TSFE"]->fe_user->user[uid];
return $aData;
]]></php>
</userobj>
</beforeinsertion>
</process>
</datahandler:DB>
<renderer:STANDARD/>
</control>
<elements>
<renderlet:TEXT name="title" label="title *">
</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>
</renderlet:FILE>
<renderlet:SUBMIT name="submit" label="Submit" />
</elements>
</formidable>
More information about the TYPO3-project-formidable
mailing list