-
MODX Staff
- 12,272 Posts
You can probably just insert [*pagetitle*] for the title and [*pubdate*] for the date.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
[*publishedon*] produces 0
The document you refer to says # pub_date- Date the document is to be published. This is not a "normal" date, and must be processed by a script for meaningful output.
Example: strftime("%d/%m/%y %H:%M:%S", $value)
But I don’t know the correct syntax to place that in a template - I’m learning how to use these chunks/snippets and so on but it’s not easy for a newbie!
Any help appreciated!
Steve
[*pub_date*] produces what looks like the article reference no of the page, ie: 1236772273
You could try using PHx to format the date e.g. [*pub_date:date=`%d.%m.%Y`*]