We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22448
    • 241 Posts
    Hi all,
    I’ve been trying to make a Date TV default to the current date time. So in the TV’s default value i put
    @EVAL return date();

    But instead of returning a date i see the actual code verbatim in a document with the TV. Same result for any other PHP test commands. So it looks like @EVAL is not executing at all.

    I’m using v 1.0.3

    Any ideas as to the cause of this or pointers for further troubleshooting will be greatly appreciated.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      In 1.0.4, I got a PHP error because date() expects at least one formatting parameter.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org