Change Album count in Cats but not on main index.php? Change Album count in Cats but not on main index.php?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Change Album count in Cats but not on main index.php?

Started by Lon, February 02, 2019, 11:49:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lon

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

ΑndrĂ©

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