Greetings,

I would like to add to my left bar a block which always displays the clickable titles of the X most recently posted stories, even those which were published but set to NOT appear on the front page. I have found several snippets of code doing something similar, but none of them are explicitly declared as tested and valid for Drupal 5.1 or 5.2.

Is there such a block?

Thank you in advance,

Marco

Comments

JirkaRybka’s picture

This is exactly the job for Views module - a must for almost every site (can do much much more than just this block). The admin UI seems a bit complicated for a newbie, but I'm sure you'll set up your block quickly: After installing Views go to its admin page, add a new View. Set it to provide a block (fill in title, number of entries to show and such, additionaly you can also provide a full-page version of the list, linked as "more" from the block), type will be probably just item-list for you, under Fields add just the title (with link and no label), under Filters add "Node: published" and "Type: story", under Sorts "Node: created time", descending. Save the View, then enable the resulting block at Blocks admin page. Views is a pretty powerfull tool :-)

Marco Fioretti’s picture

This is exactly the job for Views module - a must for almost every site (can do much much more than just this block). The admin UI seems a bit complicated for a newbie, but I'm sure you'll set up your block quickly: After installing Views go to its admin page, add a new View.

Sorry, but there is no "admin page" for Views. I have dowloaded http://ftp.drupal.org/files/projects/views-5.x-1.6.tar.gz (mine is a 5.1 website) and unpacked it in sites/mysite/modules/.

I have found views listed in the modules section of the administrative pages and enabled it without seeing any error. However:

1) There is NO "administer->views menu entry as supposed by http://drupal.org/node/59158
2) When I go to http://mysite.com/admin/build/modules and mark the checkbox to disable Views-UI I get a page
http://mysite.com/admin/build/modules/list/confirm
totally blank.

I guess that whatever makes that page look blank is also what makes views not appear in the menus, but
what is happening? Probably, being very tired right now, I have overlooked some step of the installation procedure, but which one?

Thank you in advance for any feedback,
Marco

cog.rusty’s picture

In Drupal 5 the views page is in "administer->site building->views". The page you were reading was for 4.7.

About the "white screen of death" the cause is usually running low of php memory (which can be fixed -- http://drupal.org/node/29268), but there can be other reasons. Check this as well: http://drupal.org/node/158043