[TYPO3-templavoila] fce: default value for input field - problems...

Dmitry Dulepov dmitry.dulepov at gmail.com
Thu Oct 8 11:21:10 CEST 2009


Stig Nørgaard Færch wrote:
> I'm trying to get the current date as default for a input field.
> It seems to work for tt_news (datetime field), but if I put this:
> mktime(date("H"),date("i"),0,date("m"),date("d"),date("Y"))
> into the default field, it will not be processed and will just display
> exactly mktime(date("H"),date("i"),0,date("m"),date("d"),date("Y")).

You cannot really expect PHP function to be executed in XML ;)

Dmitry Dulepov
Facebook: http://www.facebook.com/dmitryd
Twitter: http://twitter.com/dmitryd
Skype: liels_bugs

More information about the TYPO3-project-templavoila mailing list