Changing number of images shown.... Changing number of images shown....
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Changing number of images shown....

Started by wassup2nite, January 29, 2007, 07:46:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wassup2nite

OK, I want to know how I can change the number of images shown under the "Random Files" and "Last Additions" - currently it lists 12 but is there a way I can change that number?

Nibbler

Set the number of rows and columns in config. Please read the documentation. Default is not 12 so you have already changed it.

wassup2nite

Quote from: Nibbler on January 29, 2007, 08:19:08 PM
Set the number of rows and columns in config. Please read the documentation. Default is not 12 so you have already changed it.

Once I can get back into my gallery I'll check that out.

wassup2nite

Quote from: Nibbler on January 29, 2007, 08:19:08 PM
Set the number of rows and columns in config. Please read the documentation. Default is not 12 so you have already changed it.

OK, I've had a look but it's not changing what I want to change. What part in the config do I need to change to set the number of thumbnails in the "Random Files" and "Last Additions"?

Nibbler

Rows: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing
Columns: 'Number of columns on thumbnail page' setting affects all thumbnail listings.

wassup2nite

Quote from: Nibbler on January 29, 2007, 10:02:12 PM
Rows: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing
Columns: 'Number of columns on thumbnail page' setting affects all thumbnail listings.

Thanks. It looks like this is the bit I'm looking for:

QuoteThe content of the main page

This option allows you to change the content of the main page displayed by the script.

The default value is "catlist/alblist/random,2/lastup,2"

You can use the following "codes" to include other items:

    * 'breadcrumb': navigation inside the gallery (e.g. "home > category > subcategory > album")
    * 'catlist': category list
    * 'alblist': album list
    * 'random': random files (leaving random files "on" for huge galleries with more than 10,000 pics might result in performance problems; switch random "off" in this case)
    * 'lastup': last uploads
    * 'topn': most viewed
    * 'toprated': top rated
    * 'lastcom': last comments
    * 'lasthits': last viewed
    * 'anycontent': inserts php-generated content that has to reside within the file 'anycontent.php' into the index page. Can be used to include banner-rotation scripts or similar.
    * 'lastalb': last created albums

Unless you really know what you are doing you should always keep catlist and alblist in "the content of the main page", as they make up the core parts of the index page or any gallery site, for that matter.

The ,2 dictates that cpg should display 2 rows of thumbnails.

I need to change the ,2 to ,1 but I'm not sure where I change this. Any idea where this is?

Nibbler

It's the 'The content of the main page' setting in config. If you can't find it use your browser's search.