[TYPO3-core] RFC feature #16393: date ranges for ExtJS date pickers
Stefano Cecere
scecere at krur.com
Wed Nov 17 17:24:09 CET 2010
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!
On Wed, 17 Nov 2010 16:48:14 +0100, Steffen Kamper <info at sk-typo3.de>
wrote:
> Hi,
>
> much cleaner, however not clean enough ;) (see attached patch)
>
> Anyway it doesn't work for me. I checked with
>
> $GLOBALS['TCA']['pages']['columns']['starttime']['config']['lower'] =
> strtotime('-1 week');
> $GLOBALS['TCA']['pages']['columns']['starttime']['config']['upper'] =
> strtotime('+1 week');
>
> I see the greyed out days in the current month, but when i go to next
> month i can select this dates again.
>
> Also if i log the data, i see this output:
>
> console.log(minDate,maxDate);
>
>
> null null
> null Thu Dec 31 2020 00:00:00
> null null
> null null
>
> though both are set. Something weird with the css classes.
>
> vg Steffen
--
____ ___ __ _ ______________________
Stefano Cecere
KRUR.com - humanmedia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016393d.patch
Type: application/octet-stream
Size: 2133 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101117/a0a0e561/attachment-0001.obj>
More information about the TYPO3-team-core
mailing list