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

merlinofchaos’s picture

Status: Active » Fixed

Take 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.

ron williams’s picture

Status: Fixed » Postponed (maintainer needs more info)

I 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?

merlinofchaos’s picture

Yes, 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.

ron williams’s picture

I 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?

merlinofchaos’s picture

Enable the views_rss module

You may need to alias 'rss.xml' to 'frontpage/feed' depending on your needs.

ron williams’s picture

Everything 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?

merlinofchaos’s picture

Unfortunately no, doing exceptions with this system is quite difficult.

ron williams’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)