[TYPO3-mvc] f:form.dateselect ? (fluid)

Jochen Rau jochen.rau at typoplanet.de
Thu Jan 7 11:14:11 CET 2010


Hi Basti (nice to hear from you ;-)).

On 07.01.10 01:21, Bastian Waidelich wrote:
> Or - as Masi mentioned - use a standard text box and an "unobtrusive" JS
> calendar that activates itself if you give the text box a certain CSS
> class e.g.

That's the way I implemented it for an extension (with jQuery). Works 
like charm.

Fluid-Template

vom&nbsp;<f:form.textbox id="startdate" class="datepicker" 
property="dateRange.minimumValue" value="{f:format.date(date: 
'{offer.dateRange.minimumValue}', format: 'd.m.Y')}" size="12" 
/>&nbsp;bis&nbsp;zum&nbsp;<f:form.textbox id="enddate" 
class="datepicker" property="dateRange.maximumValue" 
value="{f:format.date(date: '{offer.dateRange.maximumValue}', format: 
'd.m.Y')}" size="12" />

jQuery

$.datepicker.setDefaults({
	regional: 'de',
	duration: ''
});
$("#startdate").datepicker({ defaultDate: 'today' });
$("#enddate").datepicker({ defaultDate: '+1m -1d' });



Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list