Hi there, I'm using scheduler together with token and autonodetitle (an awesome set of modules!)
What I'd like to be able to do is set an automatic node title for any nodes published via the scheduler which includes the date on which they are scheduled to be published. So for instance, if I write loads of diary entries in advance, but then schedule them to be published one at a time, they could be automatically titled 'My diary for Monday', 'My diary for Tuesday', 'My diary for Wednesday' etc. based on the schedule date.
I can't see a way to do this at the moment, but I think the best solution would be to expose a token to the token module, so that this could be used in other applications?
Comments
Comment #1
AjK commentedThis is quite simple to do in the theme.
At the beginning of node.tpl.php add this:-
See also http://php.net/date for different date format strings you may want to use, l (lowercase L) gives the name of the weekday it was published on.
Comment #2
(not verified) commentedComment #3
tanoshimi commentedThanks for the reply - much appreciated, and I will give this a go shortly.
One thing I'm not sure about though is that whilst this will display the correct title on the page to the end user browsing the site, it obviously won't change the actual node title as stored in the drupal database.
I've got multiple authors submitting diary entries (to the same blog) in advance, and they need to be able to see from browsing admin/content/node which days have already had content submitted by any of the authors (I want to ensure that only one diary entry has been scheduled on each day), but with this solution I don't think it will be clear since the title in the database will not reflect the title as seen on the site....
The best way I can think to do this would be to actually have the autonodetitle module put in the scheduled date for publication in the node title at the time that the node is created?