Last X Images?

HMetal

Joined: 2003-11-09
Posts: 16
Posted: Sat, 2005-04-23 08:04

For my gallery 1 setup, I wrote a little app to display the last 5 images uploaded and also a link/app to show the most recent images uploaded to an album - or all albums if at root level)

My question is, is there a function or a set of functions present in G2 to make this kind of app for my Gallery 2 setup?

For now, just being able to call up the last 5 images (thumbnail with link to image) to which the user has access will do for a start.

Help! Where do I start?

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Sat, 2005-04-23 19:35

Been wondering about such a feature myself. This should be fairly simple to do since G2 already has last image and last album added. I would think you could just modify the file(s) for newest image and add/change to display thumbnail or just text links in the sidebar.
I just don't know which file/API controls this feature.

Feature request maybe??

 
HMetal

Joined: 2003-11-09
Posts: 16
Posted: Sat, 2005-04-23 20:18
swordfish wrote:
This should be fairly simple to do since G2 already has last image and last album added. I would think you could just modify the file(s) for newest image and add/change to display thumbnail or just text links in the sidebar.
I just don't know which file/API controls this feature.

Feature request maybe??

I'll have a look at that module. Also, rather than a Gallery feature request, I would rather have the developers tell us how to do it so we can learn the toolkit/module API to do this and help others learn to create their own modules.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-04-23 20:26

look at how imageblock module gets the most recent image/album.. that query can easily be modified to return N items instead of one.