Originally Posted by
davidn
I am indeed
install the calendarfield extension and add the following lines to system/config/dcaconfig.php
Code:
$GLOBALS['TL_DCA']['tl_member']['fields']['dateOfBirth']['inputType'] = 'calendar';
// this can be 0, -1, 1:
/**
* 0: 'Allow all dates';
* 1: 'Only dates in the future';
* -1: 'Only dates in the past';
*/
$GLOBALS['TL_DCA']['tl_member']['fields']['dateOfBirth']['eval']['dateDirection'] = "-1";
EDIT:
added the second line, if missing a javascript error will be thrown
Bookmarks