Node Title List w/ Teasers by Node Type in 5.x

forrestn - March 21, 2007 - 19:42

Hello,

I just started working on a site using 5.x, and the strategy I used to use is 4.6/7 for pulling up a list of nodes and teasers by type doesn't seem to work any more. I can't find using the search a new snippet for this that works with 5.x. Any ideas on how to do this? I just want to be able to set a particular variable to the node type and have it display a set number of the most recent nodes of that given type, with titles and teasers.

Thanks for any help!

last node

preferred name - March 21, 2007 - 19:48

This is the best that I have found.
http://drupal.org/project/last_node

thanks!

forrestn - March 21, 2007 - 19:54

Thanks for the reply, but I'd like to actually have the code to do it so that I can customize it according to different needs. I'm going to be using this functionality in a lot of different places, and I'd like to be able to change how it looks, whether or not the titles are links, etc., so I really want to try to understand what needs to be done code-wise in a page to make this happen.

Thanks again for that fast response, though!

yes...

preferred name - March 21, 2007 - 20:05

It would be nice if someone could provide an example of a 10 most resent nodes in a block with a diff, name, and time, ect.

I don't get it. The code is

pyutaros - March 21, 2007 - 20:22

I don't get it. The code is available in the module. Is that not code you'd want to look at and try and customize?

Drupal's so easy, even I could do it.

I have tried to customize

preferred name - March 21, 2007 - 21:07

I have tried to customize the last_node module, but without any luck putting in a diff, time, name in the 10 most resent nodes block. Could you give us an example, perhaps with that module or a views module.

Sorry

forrestn - March 21, 2007 - 21:11

I'm sorry, I'm not terribly experienced in PHP and I just can't seem to extract the appropriate code from that module. I can only find the ways to make links to the posts, but I can't figure out how to access the teasers for them. Again, sorry, I'm definitely not the most knowledgeable person when it comes to reading relatively complicated code.

Thanks for the replies.

No worries. I'm not much

pyutaros - March 31, 2007 - 17:04

No worries. I'm not much good at reading code either. I would possibly recommend the Views module?

Drupal's so easy, even I could do it.
http://www.kfol.org/

views module

preferred name - March 31, 2007 - 17:25

how to make a 10 list with the views module?

Last 10 for node type Block

TheCrow - April 23, 2007 - 13:50

is a good idea for major next version of last node module :))

I begin to work it!!!

Last Node 2.0

TheCrow - April 29, 2007 - 09:10

it's out :))

ok

preferred name - April 29, 2007 - 22:58

excellent news

 
 

Drupal is a registered trademark of Dries Buytaert.