Tiled Categories Tiled Categories
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Tiled Categories

Started by MaidenFan, October 05, 2008, 10:10:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MaidenFan

I'm running up a Coppermine install for a web design client (link) 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

Nibbler

This has been discussed only recently. Search the board.

MaidenFan

Hi Nibbler,
Thanks for the help, I've read this thread and this thread 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 :)

MaidenFan

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 :)