Hello,
I was wondering if there was a way to change to amount of photos per page on a per album basis?
I know where the global settings are for all the galleries, but I have a couple albums with very small images which would be more suited to having more images per page.
Was hoping there might be some slick config.inc trick to make this happen.
Thanks!
Piwigo version: 2.62
Offline
Hello
no that doesn't exist, but that could be made as a plugin using the init trigger to change that number before the query to database
Offline
Hi :-)
You can test to personal plugin
add_event_handler('loc_begin_index', 'modifynbthumbnail');
function modifynbthumbnail()
{
global $page;
if (!empty($page['category']['id'])&&$page['category']['id']== 1) //Change 1 to you id album
{
$page['nb_image_page']=5;
}
}
Offline
I wrote this base on ddtddt proposal
http://piwigo.org/doc/doku.php?id=dev:c … oto_number
Offline
Thank you both!!
This works perfectly!!!
Yay you!!
Offline