[TYPO3-project-formidable] renderlet:DATE format required?
Jerome Schneider
typo3dev at ameos.com
Mon Oct 29 16:00:10 CET 2007
Done and actually in revision 147.
Jerome Schneider a écrit :
> Hi again Manuel,
>
> I also prefer the second option.
> I applied your patch and it will be included in upcoming SVN revision 146.
>
> Thanks for helping (& for the wiki also !)
>
> Jerome Schneider
>
> Manuel Rego Casasnovas a écrit :
>> Hello,
>>
>> I have noticed that "format" property is required in "renderlet:DATE".
>> But if you don't put this property in your XML configuration FORMidable
>> doesn't inform about this and the renderlet doesn't work.
>>
>> I think two possible options:
>> - Show a MAYDAY.
>> - Use a format by default (I prefer this option)
>>
>> A patch for the second option (it's only a little change into
>> "_getFormat()" function):
>> --- ameos_formidable/api/base/rdt_date/api/class.tx_rdtdate.php.old
>> 2007-10-25 12:50:53.000000000 +0200
>> +++ ameos_formidable/api/base/rdt_date/api/class.tx_rdtdate.php
>> 2007-10-25 12:50:46.000000000 +0200
>> @@ -98,6 +98,10 @@
>> $mFormat = $this->oForm->_callUserObj($mFormat);
>> }
>>
>> + if (!$mFormat) {
>> + $mFormat = "%Y/%m/%d";
>> + }
>> +
>> return $mFormat;
>> }
>>
>>
>> Best regards,
>> Rego
>>
More information about the TYPO3-project-formidable
mailing list