Separate style for each category

Phoca Gallery - image gallery extension
zuko1623
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Jan 2017, 11:59

Separate style for each category

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Separate style for each category

Post 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
If you find Phoca extensions useful, please support the project
zuko1623
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Jan 2017, 11:59

Re: Separate style for each category

Post by zuko1623 »

Hi, Jan. Thanks. Your post with example very useful!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Separate style for each category

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply