forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: altenae on October 29, 2011, 05:16:50 pm

Title: Only one row "lastup" when not on main page
Post by: altenae on October 29, 2011, 05:16:50 pm
I want only one row "lastup" when not on main page.

On the main page I have two rows last addition.
I want only one row when you go into a category.

I was thinking about this code in the index.php:

case 'lastup':
                       if ($cat == 0) {
                           display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                           flush();
                        }
                        break;

I could add an ELSE statement.
But how do I override the Lastup,2 in the config into Lastup,1 ?

Edward
Title: Re: Only one row "lastup" when not on main page
Post by: Joe Carver on October 29, 2011, 07:44:39 pm
Use this plugin:

Album List - Change Page Layout (Album list link)  (http://forum.coppermine-gallery.net/index.php/topic,64270.0.html)


Title: Re: Only one row "lastup" when not on main page
Post by: altenae on October 29, 2011, 07:58:56 pm
Wow..

Works great, thanks.

Edward