forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: cowgirlexpressions on February 15, 2005, 03:02:44 pm

Title: 2 Album Lists in the theme.php?
Post by: cowgirlexpressions on February 15, 2005, 03:02:44 pm
I've been working on my theme and the layouts I want and so forth.  However, I'm running into a weird question, and I checked a couple other theme.php files to make sure I just hadn't doubled the code myself.  In the theme.php file, there are TWO album list code sections (// HTML template for the album list) ...  I have changed the top/first one,  which seems to have changed the album list on my site.  So what does the second one do?

Thanks!
Ramsey
Title: Re: 2 Album Lists in the theme.php?
Post by: d1zz13 on February 15, 2005, 04:53:10 pm
Although they may seem the same they're slightly different.

The 1st line in the two blocks of code is different:
Code: [Select]
$template_album_list = <<<EOT
Code: [Select]
$template_album_list_cat = <<<EOT
The 2nd block of code is used for the display first level Albums of a category function.  8)
Title: Re: 2 Album Lists in the theme.php?
Post by: Casper on February 15, 2005, 04:55:05 pm
Yes, there should be 2, as here;

Code: [Select]
// HTML template for the album list
$template_album_list = <<<EOT

Code: [Select]
// HTML template for the album list
$template_album_list_cat = <<<EOT

See the '_cat' in the second.

One is for the root albums and albums shown at first level, the other for albums within categories.
Title: Re: 2 Album Lists in the theme.php?
Post by: cowgirlexpressions on February 15, 2005, 05:40:42 pm
Awesome.  Thanks folks!

I don't use categories, so that is why I couldn't figure this one out.  Thanks again!

Ramsey