🌍
English
Hello/Hi/Greetings,
I found this on
<?php /* Plugin Name: Custom photo number Version: 1.0 Author: ddtddt & Mistic */ add_event_handler('loc_begin_index', 'modifynbthumbnail'); global $customPhotoNumber; $customPhotoNumber = array( 1 => 5, // 5 photos per page for album #1 2 => 10, // 10 photos per page for album #2 ); function modifynbthumbnail() { global $page, $customPhotoNumber; if (!empty($page['category']['id']) && isset($customPhotoNumber[$page['category']['id']])) { $page['nb_image_page'] = $customPhotoNumber[$page['category']['id']]; } }
But do I have to set a number for all folders? As in:
$customPhotoNumber = array(
1 => 5, // 5 photos per page for album #1
2 => 10, // 10 photos per page for album #2
);
Or is there a way to set the max. number for all folders?
Offline
EdwinKort wrote:
Hello/Hi/Greetings,
Or is there a way to set the max. number for all folders?
they buried this options deep in the menu for recent Piwigo versions.
go to user groups, click for example "guest", then click edit. now you can set default value for guest.
Offline
Thanks. Already found it, but forgot to mention it here.
Offline