forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: allvip on June 01, 2014, 01:17:38 pm

Title: Album list on home page
Post by: allvip 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.
Title: Re: Album list on home page
Post by: Αndré on June 19, 2014, 10:35:15 am
I just had a look at your gallery and this topic seems to be already solved?
Title: Re: Album list on home page
Post by: allvip on June 24, 2014, 01:28:34 pm
No.I just removed the albums from the home page.
Title: Re: Album list on home page
Post by: Αndré 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;
}
Title: Re: Album list on home page
Post by: allvip on June 24, 2014, 02:12:20 pm
It worked.Thanks.