Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Album list on home page  (Read 4090 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Album list on home page
« on: June 01, 2014, 01:17:38 pm »

Is there any code to make coppermine have a diffrent number of albums on the home page?
I want to show 12 albums  per page and on the home page only to show 30 albums per page.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Album list on home page
« Reply #1 on: June 19, 2014, 10:35:15 am »

I just had a look at your gallery and this topic seems to be already solved?
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Album list on home page
« Reply #2 on: June 24, 2014, 01:28:34 pm »

No.I just removed the albums from the home page.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Album list on home page
« Reply #3 on: June 24, 2014, 02:01:50 pm »

Sorry, I mistakenly thought those big block of images are your 30 albums, but that's actually the "lastup" meta album.

It should work if you add the following code block somewhere (i.e. outside of any function) in your theme's theme.php file:
Code: [Select]
if (!$superCage->get->keyExists('cat') || $superCage->get->getInt('cat') == 0) {
    $CONFIG['albums_per_page'] = 30;
}
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Album list on home page
« Reply #4 on: June 24, 2014, 02:12:20 pm »

It worked.Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.