Support > cpg1.5 themes (visuals)

Different theme in a specific category

(1/1)

biellebrunner:
I've found this thread with a tutorial to do just that in cpg 1.4, but I assume it won't work for 1.5.
Is it possible to do that in cpg 1.5? Is there maybe a plugin or something?

allvip:
This allows you do add diffrent styles or diffrent css files for every category and all the pages in it or for every category and every album.

Wrapp every subcategories in diffrent divs (dinamyc id for the body ) http://forum.coppermine-gallery.net/index.php/topic,77231.0.html


If you really need themes for every category, I can help you with that too.

ron4mac:
You'll have to make a 1 line modification to include/init.inc.php, and then the attached plugin should provide what you want.

In CPG 1.5.44, just before line 301 in include/init.inc.php (line 304 in CPG 1.6.01):

--- Code: ---if (!file_exists('themes/'.$CONFIG['theme'].'/theme.php')) {
--- End code ---

add the line:

--- Code: ---$CONFIG['theme'] = CPGPluginAPI::filter('theme_name', $CONFIG['theme']);
--- End code ---

( It's possible that line will become a permanent part of new releases )

This was put together rather quickly and not every circumstance was fully tested. Let me know whether it works okay for you.

Updated 21 Dec 2016: Sub-categories default to parent theme.
Updated 23 Feb 2017: Correct issue with meta albums.

Navigation

[0] Message Index

Go to full version