Hi all,
I want to show a blog-like list on my site using Ditto. Every blog items will describe a project I did for clients.
These projects have been done in the past.
If I add new documents, they all het the date and time of [now]. Ditto shows the date with the [+date+] code...
Is it possible to change the date and time of a document te reflect the date we did the project?
Or, is the solution this: remove the date from the ditto template and add the date manually in the content...?
Thanks,
Rene
Ren
-
☆ A M B ☆
- 24,524 Posts
How about setting the publish_date for when you did the project, then get Ditto to display that?
-
MODX Staff
- 12,272 Posts
Use the Doc Manager module to change dates if you still need to do so.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
MODx doesn’t use regular php tags like that. You’ll need to use phx in the placeholder to format the timestamp.
[+pub_date:date=`%d.%m.%Y`+]
http://wiki.modxcms.com/index.php/PHx#date.28.3D.60dateformat.60.29