[TYPO3-project-formidable] New option: Disable INPUTs
Luc Muller
l.mul-nospam-ler at ameos.com
Tue Jul 3 13:43:25 CEST 2007
Hi Manel.
I think That you could have used hte <custom> tag.
As it is used to add params to the tag (mainly css classes but could be
desiable)
like this : <custom>disabled="disabled"</custom> it should have worked as
Well.
but it can make sense to have a special tag to disable the input...
Luc
"Manuel Rego Casasnovas" <mrego at igalia.com> a écrit dans le message de news:
mailman.584.1183462773.29892.typo3-project-formidable at lists.netfielders.de...
>
> Hello.
>
> I need a new option to can disable some INPUTs in my forms.
>
> For this I've added a little function in formidable_mainrenderlet class,
> and I've modified a bit the getAddInputParams function at line 202
> (http://test.kunstvaerker.dk/html/class_8mainrenderlet_8php-source.html#l00202).
>
> Next the source code:
> function _getAddInputParams() {
> return " " . $this->_getCustom() . " " . $this->_getEvents()
> . " " . $this->_getDisabled() . " ";
> }
>
> function _getDisabled() {
>
> if ($this->oForm->_defaultFalse("/disabled/",
> $this->aElement)) {
> return "disabled=\"disabled\"";
> }
>
> return "";
> }
>
> Now I can use a new property disabled in my forms, in the XML config like:
> <renderlet:TYPE name="myrdt">
> <disabled>true</disabled>
> </renderlet:TYPE>
>
> You can add this new feature in the next FORMidable releases.
>
> Best regards,
> Rego
>
> --
> Manuel Rego Casasnovas
> Computer Science Engineer
> mailto:mrego at igalia.com
> Tel: +34 986 10 76 10
> Fax: +34 981 91 39 49
> Igalia - http://www.igalia.com
More information about the TYPO3-project-formidable
mailing list