We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31770
    • 5 Posts
    Hi, I need to set default value for my TV (Date / unixtime) = date, that the document was created (I dont wanna use the createat DV, because it is not possible to edit this value)...
    When I set default value to: @EVAL return time(); or @EVAL return date("d-m-Y G:i:s");
    The TV is empty as a default...
    When I set some text TV to: @EVAL return "sometext";
    Then, when I add new document with this TV, its value is @EVAL return "sometext"; -> so, the php code was not executed...
    Can anyone help me huh Please....
    Thanks a lot.
    V.Jina
      • 15871
      • 105 Posts
      HI Did you ever get a solution for this?
        • 31770
        • 5 Posts
        Hi, not yet.
        I think it is a bug in MODx....
          • 25663 MODX Staff
          • 12,272 Posts
          You can edit the created/edited values using the ManagerManager plugin. Regardless if you think there’s a bug in the code then by all means please file a bug report (see the link at the top).
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me