The blog module gives me a "recent blog posts" block, the poll module gives me a "most recent poll" block and the forum module gives me "active forum topics" and "new forum topics" blocks. I've got a Drupal 5.x site where we mostly use stories, so what's the best way to get a "recent stories" block?

I tried creating my own block and pasting in the "recent blog posts" PHP code and modifying it to report stories, but I couldn't get it to work. User error I suspect. I created my own story module based on blog, with most of the bits ripped out except for the "recent" block. This works okay.

Anyone have any better suggestions?

Should this feature be part of the node module (in core)?

Comments

Cool_Goose’s picture

Just use Views module to make a block with whatever options do you want.
------------------------------------------------------
Be Smart, Think Free, Choose OpenSource.

dshaw’s picture

I've had a quick look at the doco, it looks like what I want. I'll report back on how I go. Thanks.

dshaw’s picture

That views module is the most amazing thing. I had a block and a page done in no time.

pete_dr’s picture

omg i was just about to post this..... views is a lifesaver :D:D:D

BlakJak’s picture

Care to share? ;-)
I want a 'Recent Stories' block as well, but unfortunately a lot of the php side of this is wayyyy over my head.

Chris Lozinski’s picture

Hi Blakjak

The Last Node module should do this for you - worked for me. It will create a block showing any node type of your choice e.g. last 10 stories.

http://drupal.org/project/last_node

Regards

Chisel