restict the number of albums in "lastalb" if displayed in special page restict the number of albums in "lastalb" if displayed in special page
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

restict the number of albums in "lastalb" if displayed in special page

Started by mivola, July 30, 2008, 11:11:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mivola

Hi all,

once again I have a question. I want to display the latest (updated/added) albums in my gallery on a page within CPG. So when the user clicks a link I call the URL "thumbnails.php?album=lastalb" which works fine so far. It displays the albums in correct order. But essentially it displays _all_ albums from the gallery within several pages.
What I would like to have is a parameter to pass to the page (eg "thumbnails.php?album=lastalb&limit=10") to display only the latest 10 albums on one page.

Is there such a parameter to pass to? If not, how can I achive this functionality?

Thanks a lot!
Michael

Joachim Müller

All meta albums except the random meta album are paginated, so they display as many files as there are. Adding that parameter would mean you'd have to modify coppermine's core code.