A custom "view" of album.tpl - to help with customization

spenlinhauer

Joined: 2006-05-17
Posts: 17
Posted: Wed, 2006-10-04 22:32

Ok - So I have "wasted" the whole day working on this.
And only the lord knows why!

But in anycase - I understand Album.tpl a whole lot more now.

I started out trying to understand where/what to modify so that the name of an album is ABOVE the thumbnail when there are sub-albums, but the "title" of the photo is UNDER the thumbnail on the "last page" but not on the actual photo page.

I read about options to know when you are on the "TOP" album, but that code would not always work for a sub-album, as you are not always at the same level.

I haven't figured it out yet - but after I digest(that's not think about it) I'll probably be able to get the next step closer.

Using Matrix theme here, and the file you are about to see is a modified version of the standard album.tpl.
have a look here (information at top of page) You'll need the MS Excel plug-in to view:
http://www.seppandbrian.com/development/Test%20Album%20tpl.html

You can see the code in action at:
http://www.seppandbrian.com/gallery/main.php/v/MovinLikeMolassas/

I'll probably try again in a couple of days.
But I thought that what I developed might be good for the help pages?

SEPP

 
mkadmin

Joined: 2007-01-20
Posts: 4
Posted: Sun, 2007-02-18 06:30

Hey spenlinhauer, your gallery looks great. Can you tell me what all did u modify in album.tpl to achieve this?
thanks.

 
Roi Danton

Joined: 2006-06-15
Posts: 46
Posted: Sun, 2007-02-18 21:57

Unfortunately done still with tables. Try it with floated div's instead of table cells. It means less code and keeps compatibility with buggy IE6.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Mon, 2007-02-19 02:19

If you want a theme with floated divs you need to use floatrix as a base instead of Matrix.