[TYPO3-core] RFC feature #16393: date ranges for ExtJS date pickers
Susanne Moog
typo3 at susannemoog.de
Wed Nov 17 20:40:21 CET 2010
On 17.11.2010 17:24, Stefano Cecere wrote:
> hi Steffen..
> your cleaner code is even better thanks! attached new version
>
> it doesn't work for you because you should set the "range" property (not
> directly the 'lower' and 'upper' properties):
>
> for example:
>
> $GLOBALS['TCA']['pages']['columns']['starttime']['config']['range'] =
> Array ('lower' => strtotime('-1 week'), 'upper' =>
> mktime(0,0,0,date('m'),date('d')+7,date('Y')));
>
> it works for me!
Attached v5 makes it work with datetime fields, too
(for example I always have the following in my extTables
$GLOBALS['TCA']['pages']['columns']['starttime']['config']['eval'] =
'datetime';
$GLOBALS['TCA']['pages']['columns']['endtime']['config']['eval'] =
'datetime';
)
+1 by reading and testing
Susanne
--
What's worth the price is always worth the fight
Every second counts 'cause there's no second try
TYPO3 Core Team Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16393_v5.diff
Type: text/x-patch
Size: 3180 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101117/9b986c5d/attachment-0001.bin>
More information about the TYPO3-team-core
mailing list