Closed (fixed)
Project:
Drupal core
Version:
4.2.0
Component:
base system
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2003 at 15:23 UTC
Updated:
28 Jul 2003 at 17:45 UTC
It would be handy if there was a global setting to control how long nodes live on the front page. After the elapsed time has expired the node's "promote to front page" option becomes reset.
Comments
Comment #1
killes@www.drop.org commentedYou could extend the scheduler.module (in contrib cvs) to do this.
Comment #2
moshe weitzman commentednodes naturally scroll off of the front page with more activity. why would
you want to force them off? are you thinking of removing static nodes
automatically?
Comment #3
killes@www.drop.org commentedI don't know. But I got this request from one of my Co-Admins
yesterday. We have mainly events on the front page and it looks a bit
silly if they are already over and still on the frontpage.
I am still waiting for the answer to the question "what else should we
put there then?"...
Comment #4
matt westgate commentedMy concern is for websites that post a lot of content to the frontpage. I don't want make a pager query call for a site that has 5.000 some nodes with the front page status enabled down the road when all a person wants to do is check out the homepage.
I would like to set an option that tells drupal when the front page status expires, say after a couple of months. We store this value in the variable table and let cron take care of flipping the switch in the database.
For my client's site, These nodes are still accessible via the url path patch and breadbrumb module i have built for 4.3. For example: "pressreleases/archive" and "news/archive" would contain some of these "no longer promoted" nodes.
Comment #5
ax commentedfrom node.module, DRUPAL-3-0-0 [1]:
good ol' times ...
[1] http://cvs.drupal.org/viewcvs/drupal/modules/node.module?annotate=1.56.2...
Comment #6
killes@www.drop.org commented@ax: I think "post" and "hide" are rather analogous to "publish" and "unpublish".
@mathias: It should be to achieve what you want, look at the scheduler.module. You don't even need am extra "timeout" time. You can simply use the standard timestamp created when the post is submitted.
Comment #7
matt westgate commentedscheduler.module will enable me to do what i need.