Closed (fixed)
Project:
Views (for Drupal 7)
Version:
4.7.x-1.4-2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2007 at 04:58 UTC
Updated:
6 Feb 2007 at 02:30 UTC
I've been trying for several days to find a method to demote stories from the front page after a certain date. So far, I have been unsuccessful. Is this possible with views. If so, how.
Comments
Comment #1
merlinofchaos commentedTake the default 'frontpage' view and click 'add' to create your own version of the view.
Scroll down to the filters. Select node: created time and click add. After the refresh, set the operation to is greater than or equal to, set value of that filter to the word now. In the option field, enter the number of seconds you want posts to appear on the front page, with a negative sign in front of it. For example, if you want posts to appear on the front page for just one day, enter -86400.
Comment #2
ron williams commentedI just tried this, and while it does work on www.example.com/frontpage, it doesn't do anything to the actual frontpage. Am I missing something?
Comment #3
merlinofchaos commentedYes, you need to set your default front page to the new URL.
In 4.7.x, go to administer >> settings -- I forget which box it is in, but there is an entry for 'default front page'. Just enter 'frontpage' in that box, and hit save.
Comment #4
ron williams commentedI have gotten this to work now. I'm having another issue. I syndicate the content of my front page through an rss to html converter and then either an iframe or a php include command. However, there is not an RSS feed for the front page anymore, and this is a very important feature for me. How can I make/add an auto updating one?
Comment #5
merlinofchaos commentedEnable the views_rss module
You may need to alias 'rss.xml' to 'frontpage/feed' depending on your needs.
Comment #6
ron williams commentedEverything is now working correctly. There is one last feature I need to know about before I can close this. Is there a way I can have one page that was published on "2007-01-14 03:04:00 -0500" to be promoted to the frontpage using the filters you said above?
Comment #7
merlinofchaos commentedUnfortunately no, doing exceptions with this system is quite difficult.
Comment #8
ron williams commentedComment #9
(not verified) commented