[Typo3-dev] frontendformslib
Nico de Haen
typo3 at ndh-websolutions.de
Wed Dec 7 11:56:40 CET 2005
Hi Jerome,
as far as I can see, the ameos_formidable needs pretty much code for
usage (the XML configuration). One big andvantage of the $TCE is, that
you can get most of the information you need to render a form
from there.
So if I want a form for several fields of a table,
with frontendformslib you just need these lines:
*****************************************************************
$className = t3lib_div::makeInstanceClassName('tx_frontendformslib');
$formObj = new $className ($this);
$formObj->steps[1] =
$formObj->createStepConf(implode(',',$myFieldlis), $myTable, 'Header
1', 'Header 2');
... (optional mor steps, each generates a page with a form)...
$formObj->init();
if ($formObj->submitType == 'submit') {
//do something
...
$formObj->destroySessionData();
} else {
$output .= $formObj->renderWholeForm();
}
*****************************************************************
If you want another form, all you have to do is, to change
$myFieldlist and $myTable
That's pretty easy isn't it?
I think it would be possible to generate you XML configuration from
$TCA, but I have to finish my project soon, so I can't do it now...
Nico
Jerome schrieb:
> Hi Nico,
>
> You should take a look at the extension ameos_formidable and it's demo
> ameos_demo_formidable
>
> It's an API that creates FE forms based on XML conf.
> Really flexible and reusable.
> Alpha version but still useable.
>
> It doesn't uses TCA for the moment, but this feature has been requested many
> times so we're thinking about it.
> Is there anybody here in the community with strong TCA knowledge that could
> help us achieving this ?
>
>
>
> Best regards,
> Jérôme Schneider
> typo3dev at ameos.com
>
> "Nico de Haen" <typo3 at ndh-websolutions.de> a écrit dans le message de news:
> mailman.1.1133949969.16947.typo3-dev at lists.netfielders.de...
>
>>Hi,
>>
>>I wonder, if anyone has extended the frontendformslib so far.
>>
>>I read the thread from the 27-04 16:17, but couldn't find any other
>>postings.
>>
>>So 2 questions:
>>
>>1. Is there already a "roadmap" for the handling of creating frontend
>>forms from TCA in the future?
>>
>>2. Did someone extend frontendformslib for his own use and would share the
>>code?
>>
>>Thanks,
>>
>>Nico
>
>
>
More information about the TYPO3-dev
mailing list