Default picture for empty albums?

Rooster242

Joined: 2005-03-23
Posts: 2
Posted: Wed, 2005-03-23 01:08

I'd like to automatically use a default picture for empty albums so my users have something to click on other than "no thumbnail".

I found what I need to replace in albumBody.tpl on line 103

{g->text text="no thumbnail"}

but what do I replace that line with to show an image I have put in the gallery2/images directory called empty_album.jpg? I still need it to use the album frame and generate a link to the album.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-03-23 02:11

<img src="{g->url href="images/empty_album.jpg"}" alt=""/>

see the code already in albumBody.tpl for how to wrap this in the imageframe.

 
Rooster242

Joined: 2005-03-23
Posts: 2
Posted: Wed, 2005-03-23 04:48

Perfect, thx! Looks so much better now.

 
volksport
volksport's picture

Joined: 2002-10-06
Posts: 239
Posted: Wed, 2005-03-23 16:25

I intend to eventually implement either a css solution, or "no thumbnail" derivative that will size correctly to your current albums thumbsize. I agree, just the words "no thumbnail" doesn't look good aesthetically.