4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Djongov on May 19, 2014, 12:07:49 PM

Title: Changing default "Images per page"
Post by: Djongov on May 19, 2014, 12:07:49 PM
Hi guys,

How can i change the default "Images per page" number ? I'd like to be higher than the default which is 3 for "new" and i think 6 or 9 for inside the categories.

Help appreciated.
Title: Re: Changing default "Images per page"
Post by: nobby on May 19, 2014, 12:43:06 PM
Hi,

open the index.php and replace
$num_new_images = $ config ['image_cells'];

with, for example:
$num_new_images = 7;

or

ACP -> Settings -> Image Settings -> and there
       -> How many cells for the table of images: 3
       -> How many rows the table should have the images by default: 2

Result: 3 x 2 = 6 images per page by default


nobby
Title: Re: Changing default "Images per page"
Post by: Djongov on May 19, 2014, 04:56:16 PM
Hi nobby,

Thanks for the swift reponse. it worked perfectly for the "New" images. However playing with the cells only made a different in distributing the rows and columns, not the actual number of shown images. Whatever I do , they are always 9 to be displayed.
Title: Re: Changing default "Images per page"
Post by: Rembrandt on May 19, 2014, 06:04:30 PM
Welcome to the Forum!
Hi guys,

How can i change the default "Images per page" number ? I'd like to be higher than the default which is 3 for "new" and i think 6 or 9 for inside the categories.

Help appreciated.
I think for 6 or 9 Images, is the "Default_960px or Default_full" Template the best.
ACP/General/Settings/General/Settings/Choose template Directory =  Default_960px or Default_full

for 6 or 9 Images in a row:
ACP/General/Settings/Image Settings/Image table cells = 6 or 9

mfg Andi