2 Album Lists in the theme.php? 2 Album Lists in the theme.php?
 

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]

Main Menu

2 Album Lists in the theme.php?

Started by cowgirlexpressions, February 15, 2005, 03:02:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cowgirlexpressions

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

d1zz13

#1
Although they may seem the same they're slightly different.

The 1st line in the two blocks of code is different:
$template_album_list = <<<EOT
$template_album_list_cat = <<<EOT

The 2nd block of code is used for the display first level Albums of a category function.  8)

Casper

Yes, there should be 2, as here;

// HTML template for the album list
$template_album_list = <<<EOT


// 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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

cowgirlexpressions

Awesome.  Thanks folks!

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

Ramsey