Page 1 of 1

Separate style for each category

Posted: 27 Jan 2017, 12:07
by zuko1623
Hello.
I use last Phoca Gallery version (4.3.4).
I wonder if possible to set for each category its own style (that is in Main options - Category view).
For example different "Image Box Space", "Display name" and so on.
Thank you.

Re: Separate style for each category

Posted: 27 Jan 2017, 19:55
by Jan
Hi, for now there is no such option. So this needs to be customized. E.g. in Phoca Gallery view code (category view) there is variable for ID of the category - to do a specific if condition to load external CSS:

e.g.
if ($id ==1) { load a.css} else if ($id == 2) { load b.css}, etc :idea:

Jan

Re: Separate style for each category

Posted: 28 Jan 2017, 09:00
by zuko1623
Hi, Jan. Thanks. Your post with example very useful!

Re: Separate style for each category

Posted: 03 Feb 2017, 01:49
by Jan
Ok