Community & Support

Easiest way to get latest stories block?

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

Just use Views module to

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

Think Smart, Be Free, Choose Open Source.

I'll give it a go

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

Wow

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

omg i was just about to post

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

Care to share? ;-) I want a

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.

Hi Blakjak The Last Node

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

Regards

Chiseller