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: Change Album count in Cats but not on main index.php?  (Read 519 times)

0 Members and 1 Guest are viewing this topic.

Lon

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Change Album count in Cats but not on main index.php?
« on: February 02, 2019, 11:49:35 pm »

Hello,

I would like to change the "Number of albums to display" in Categories but not on the main index.php page.

For example, my Config settings are: "Number of Albums to display" is set to 4 - Which is what I want on the home/index page. But I would like to display more (8 or 12) on the Category pages.

TIA
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15759
Re: Change Album count in Cats but not on main index.php?
« Reply #1 on: March 14, 2019, 10:25:10 pm »

Add this to the top of your theme's theme.php file (right after the <?php tag):
Code: [Select]
if ($superCage->get->getInt('cat')) {
    $CONFIG['albums_per_page'] = 12;
}
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 20 queries.