Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By cvuijlst on
I am scheduling stories with the scheduler module. I'd like to set up a public 'archive' page where anonymous visitors can see all the unpublished stories. How do I do this?
Thanks! Carlo
Comments
I am not sure.
I am not sure if that can be done. Maybe if the moderation queue is installed and active. But if a node is set to unpublished, it can't be seen.
How to achieve a news archive page?
If not, what would be the best method to have news (stories) published for a certain period of time and then automatically store in a "news archive" page?
Well.
I would create a content type called archive. Then I'd set a role so that everyone can see it. After a specified time I'd change the role so that only a subset could see it.
how?
I'm not sure I understand what you mean. Wouldn't this require visitors to login to see the news archive? I'd rather not want that...
I'm pretty sure you can use
I'm pretty sure you can use the views module to provide a page listing all unpublished content - you'd just create the view for your content type, and apply a filter "published = no" (or similar). Probably worth a try.
Yes, but
That's based on wether you publish a story or not, there is no functionality for the scheduler dates. I found a more complex solution by creating my own cck form for stories (with two extra date fields, a "publish from" and a "publish until date") and then made two views that filter on these dates.
Ooh that sounds good
Ooh that sounds good actually for something I've been wanting to do for a while.
I've not tried dates/cck/views yetfor this - do you think I'd have any luck making a single date field then filtering by "today's date" for one view - this'd be to make an "on this day in history" page. I only want day and month filtered though - it'd need to work independent of the year.
That is possible
Views offer a filter possibility where you can compare the date of a field in your form to "now" (date of today). You can set date is equal - equal/greater - equal/smaller...
Thanks for this, I'll give
Thanks for this, I'll give it a go!