[TYPO3-dev] Re: BE Module: How to add a datepicker to an input

Sven Burkert bedienung at sbtheke.de
Thu Feb 13 09:08:34 CET 2014


This work for me after adding this (after line $pageRenderer->addJsFile($this->backPath . '../t3lib/js/extjs/ux/Ext.ux.DateTimePicker.js');):

		// Define settings for Date Picker
		$typo3Settings = array(
			'datePickerUSmode' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['USdateFormat'] ? 1 : 0,
			'dateFormat' => array('j-n-Y', 'G:i j-n-Y'),
			'dateFormatUS' => array('n-j-Y', 'G:i n-j-Y')
		);
		$pageRenderer->addInlineSettingArray('', $typo3Settings);

Before, I got the error "TYPO3.settings is undefined".



More information about the TYPO3-dev mailing list