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:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.