I started a
thread and posted a
feature request to Jira for the ability to make it possible to convert
pub_date to
createdon or time()/now() if there was none entered on save.
It turns out that there is a
publishedon field that, unless one was trolling the site tables, would likely not find. I had no idea it exists and there have been a number of threads over the years trying to solve this problem of displaying items in ditto if there was no explicit pubdate in some and one in others.
My question is this: Is it accurate to say that the
publsihedon field in the
site_content table would be accessed via $modx->documentObject[’publishedon’] or $content[’publishedon’] and that its behavior is to be populated on saved if no
pub_date is set or be populated when the pub_date was reached?
If this is true, I’d like to add it to the current documentation and prep a tutorial on how to use Ditto with it.
Cheers,
Jay