coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: MaidenFan on October 05, 2008, 10:10:13 PM

Title: Tiled Categories
Post by: MaidenFan on October 05, 2008, 10:10:13 PM
I'm running up a Coppermine install for a web design client (link (http://www.adagency-london.com/clients-new)) and they've asked that the categories be made to tile like the albums.

As far as I know this isn't possible with the default CPG theme (which is the one I'm using) but are there any code hacks I can play around with to get the second-level categories to tile?

Cheers in advance for any help!
MF
Title: Re: Tiled Categories
Post by: Nibbler on October 06, 2008, 12:25:41 AM
This has been discussed only recently. Search the board.
Title: Re: Tiled Categories
Post by: MaidenFan on October 06, 2008, 03:56:32 PM
Hi Nibbler,
Thanks for the help, I've read this thread (http://forum.coppermine-gallery.net/index.php/topic,55272.0.html) and this thread (http://forum.coppermine-gallery.net/index.php/topic,40417.0.html) and neither do what I'd like to achieve.

Gallery hierarchy is this:
First Level Category --> Second Level Category --> Album

No first level categories have albums inside them, only second level categories. Ideally I'd like the layout to be this:

-------------------------------------------------------
First Level Category
-------------------------------------------------------
Second Level Category  | Second Level Category
Second Level Category  | Second Level Category
-------------------------------------------------------
First Level Category
-------------------------------------------------------
Second Level Category  | Second Level Category
Second Level Category  | Second Level Category
[ ... ad infinitum ... ]


Basically it's exactly the same as the albumlist view, but with categories instead.

Apologies if I haven't explained it that well :)
Title: Re: Tiled Categories
Post by: MaidenFan on October 06, 2008, 04:02:53 PM
Just taken a more detailed look into the HTML output using Marius' code, to looks like the {CAT_THUMB} marker is still outputting a table cell which is screwing the layout up slightly.

I've tried searching a few files for where the {CAT_THUMB} code is defined, but I can't find it. Any help here is appreciated :)