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.
Separate style for each category
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Separate style for each category
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
Jan
e.g.
if ($id ==1) { load a.css} else if ($id == 2) { load b.css}, etc
Jan
If you find Phoca extensions useful, please support the project
-
zuko1623
- Phoca Newbie

- Posts: 2
- Joined: 27 Jan 2017, 11:59
Re: Separate style for each category
Hi, Jan. Thanks. Your post with example very useful!
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Separate style for each category
Ok
If you find Phoca extensions useful, please support the project