I’ve noticed that when I create and save a document, the Publish date (as found in the "Page Settings") is never filled.
What’s the point of a Publish date field if its not used?
How do you make it auto-update when the document is saved, or is it reliant upon a Document status field (ie: Publish, Draft, Private, etc)?
Thanks.
The publish and unpuplish dates are there for autmated (un)publishing at the given date/time.
Greetz
JUSI
How do you make the Publish date pick up the date on save?
I don’t know if this is possible.
It’s intended to be set manually to a date/time in the future to be published then.
Greetz
JUSI
If you click on the calendar icon in the publish input field, and then click the highlighted day on the calendar (it should be the current date and will show the time at the bottom by default) it will populate the publish field.
ManagerManager let you set pub_date as default value
mm_default($field, $value, $roles, $templates, $eval)
Provides a default value for specific fields in new documents / folders.
Another SUPER awesome plugin ->
http://modxcms.com/forums/index.php/topic,36558
// LOL
-
MODX Staff
- 2,502 Posts
IIRC there is a separate publishedon field (in the db) that is non-settable that actually takes the date on which a document is set to published. It is not the same as pub_date which is to be used for delayed automatic publishing of documents.
In any event it is cool that you can accomplish this using ManagerManager. This could prove to be very useful.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub