[TYPO3-dev] Can't find the eval-funcs
Stefan Frömken
firma at sfroemken.de
Thu Oct 8 13:32:58 CEST 2009
I can't find the global date()-function, too. But there is a function
called "formatValue" in *tceforms.php.
To call this function your field need some extra settings. You can set
them in a ext_tables.php in an extension like this:
$TCA['tt_content']['columns']['date']['config']['readOnly'] = true;
$TCA['tt_content']['columns']['date']['config']['format'] = 'date';
$TCA['tt_content']['columns']['date']['config']['format.']['option'] =
'd.m.Y';
To allow the "option" setting you have to comment out
Line 3194 in *tceforms.php:
//$TSconfig = t3lib_div::removeDotsFromTS($TSconfig);
In my opinion there is a mistake with this function. Here is the current
Bug:
http://bugs.typo3.org/view.php?id=12148
But I don't know if there are any other problems in deactivating this.
I'm not in the core team...it was only a hint for you to show your
fields in given format.
As Oliver told you: It's hardcoded and in my opinion there is no good
possibility to save your value in the given format d.m.Y.
Stefan
Am 08.10.2009 12:13, schrieb Felix Oertel:
> Hi,
>
> Oliver Klee schrieb:
>>> Where are this eval-functions located at? Any other ideas, how to change
>>> the date-format in the input-fields?
>>
>> The date formats currently are hardcoded.
>
> Are t3lib/jsfunc.evalfield.js and t3lib/class.t3lib_tceforms.php good
> places to start at? :-)
>
> Regards, Felix
More information about the TYPO3-dev
mailing list