coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: wassup2nite on January 29, 2007, 07:46:36 PM

Title: Changing number of images shown....
Post by: wassup2nite on January 29, 2007, 07:46:36 PM
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?
Title: Re: Changing number of images shown....
Post by: 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.
Title: Re: Changing number of images shown....
Post by: wassup2nite on January 29, 2007, 08:29:17 PM
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.
Title: Re: Changing number of images shown....
Post by: wassup2nite on January 29, 2007, 10:00:14 PM
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"?
Title: Re: Changing number of images shown....
Post by: 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.
Title: Re: Changing number of images shown....
Post by: wassup2nite on January 29, 2007, 10:17:41 PM
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?
Title: Re: Changing number of images shown....
Post by: Nibbler on January 29, 2007, 10:18:49 PM
It's the 'The content of the main page' setting in config. If you can't find it use your browser's search.