We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7560
    • 6 Posts
    Hi guys,

    I’m developing my first site using modx. Due to my inexperience with modx I’ve a little problem on my maxigallery and phx.

    I noticed that if i write in my template:
    [+maxigallery.picture.date:date=`%d.%m.%Y`+]
    

    the output is "01.01.1970", but the picture date in my database is 05/02/2010 (italian date).

    I think that ’date’ modifier accept only unix timestamp, and in maxigallery db, ’date’ field is ’datetime’.

    I’m right? Is there any quick method to print only ’day.month.year’ from a datetime without using PHP?

    thanks and sorry for my bad english embarrassed
      sorry for my bad english smiley
      • 7560
      • 6 Posts
      I’ve found a solution... It’s a CustomModifier, a simple php snippet... sorry for my unuseful topic... embarrassed

      http://wiki.modxcms.com/index.php/PHx/CustomModifiers
        sorry for my bad english smiley
        • 7923
        • 4,213 Posts
        Yep, that info is also in MaxiGallery wiki page: http://wiki.modxcms.com/index.php/MaxiGallery#PHx_custom_modifier_example


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."