Here is my situation. I'm using Workflow and Triggers modules so that users can save their articles as Draft state or Published state.
The problem is that if users wrote an article 2 weeks ago as draft and publish now, the date and time of "Authored on" field under the "Authoring information" section of the node is dated 2 weeks ago.
What I want is the "Authored on" field is set to the current date and time when the "Publish post" trigger is triggered.
Can someone tell me how to do that? or point me to resources that can solve my problem.
I'm using Drupal 6.9 and Workflow 6.x-1.1.
thx!
Comments
Comment #1
ainigma32 commentedSee here http://drupal.org/node/172152 for info on writing actions and unless I'm mistaken this thread http://drupal.org/node/88208#comment-178559 holds an example solution fro your particular setup.
Please post back how that works out for you.
- Arie
Comment #2
denislabonkink commentedThx ainigma32 for providing the 2 helpful links.
With them, I was able to write a custom action to update the created time of the node.