Author Topic: Changing default "Images per page"  (Read 6005 times)

0 Members and 1 Guest are viewing this topic.

Offline Djongov

  • Pre-Newbie
  • Posts: 2
    • View Profile
Changing default "Images per page"
« 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.

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Changing default "Images per page"
« Reply #1 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

Offline Djongov

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Changing default "Images per page"
« Reply #2 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.

Rembrandt

  • Guest
Re: Changing default "Images per page"
« Reply #3 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