[TYPO3-project-formidable] renderlet:DATE format required?
Manuel Rego Casasnovas
mrego at igalia.com
Thu Oct 25 14:01:14 CEST 2007
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
--
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