showing top 6 rows of database table - block, page or packet?

Permalink 1 user found helpful
blocks, single pages, pages and packets...
very clear..

But which to use to do this? :

At my homepage, I'd like to see the 6 most recent projects of my portfolio. And at the portfolio page, I'd like to see them all.

do I:

1) create a block for a portfolio item?
This would mean I have to delete the last one after adding a new one at the home page, and I will also have to add it again to the portfolio page right?

2) create a single page for both these pages, so that I can program stuff like the 'max 6'?
But then how can the end user add a new item?

3) you tell me the much better and probably quite obvious option? :)

Tnx!

 
Pritam replied on at Permalink Reply
The best obvious option would be to copy the latest four items of your portfolio page to the scrapbook and add them where ever required on your homepage.
jordanlev replied on at Permalink Reply
jordanlev
I respectfully disagree with @Pritam -- this creates extra steps whenever you have a new portfolio piece (you have to remember to go the scrapbook and update them -- rotate out the old one and replace with the new one).

Instead, I would have each portfolio project be on a different page, and use the Page List block to show either all of them or only the latest 6. Depending on what you want to show in the listings, you may need to create custom templates for the Page List block (perhaps two -- one to show all, and one to show only most recent 6). Not sure how comfortable you are with code, but I wrote a tutorial on how to do something similar for blog posts (where a custom template for the Page List block shows a portion of the content on each page) --http://c5cookbook.com/recipes/make_a_blog... .
This walk-through is rather involved though, so if you can post more specifically what you want to show in these listings (like "1 screenshot and 1 caption", or "the first 3 images or videos and 100 characters of text", etc.), I might be able to give you some specific code to use.

-Jordan
Pritam replied on at Permalink Reply
I agree with @jordanlev that copying the items to the scrapbook would be a daunting task, hence the solution mentioned by him would be the best for what you trying to achieve.

@jordanlev thanks for your helpful post, I'm gonna try this out.
rverheij replied on at Permalink Reply
Thanks for the great replies guys, that's excactly what I needed to know. what a welcome :D

@jordan -- that sounds very clear and coding should be fine so I'll go through your tutorial somewhere in the next days and report back here how it went.

tnx!!