Hi
How to make a different template for categories (with categories and sub categories) and different for photos in category? I changed categories default template, so that there is a category image, then on the right its name. And now I want to change template for displaying pictures in category, so that ther are for example 2,3 images in a row, without names. How to make it?
Categories template and photos in category
-
thomas2411
- Phoca Newbie

- Posts: 4
- Joined: 26 Mar 2009, 21:07
- Location: Poland
- Contact:
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Categories template and photos in category
Hi, see the parameters:
https://www.phoca.cz/documents/2-phoca-g ... -menu-item
you can set in parameters that e.g. categories will have the text below image and images will not, categories can be displayed above the images or they can be displayed the same way as images (in category view), etc...
see the demo:
https://www.phoca.cz/demo/modal-box
https://www.phoca.cz/demo/categories-view-in-category , etc...
Jan
https://www.phoca.cz/documents/2-phoca-g ... -menu-item
you can set in parameters that e.g. categories will have the text below image and images will not, categories can be displayed above the images or they can be displayed the same way as images (in category view), etc...
see the demo:
https://www.phoca.cz/demo/modal-box
https://www.phoca.cz/demo/categories-view-in-category , etc...
Jan
If you find Phoca extensions useful, please support the project
-
thomas2411
- Phoca Newbie

- Posts: 4
- Joined: 26 Mar 2009, 21:07
- Location: Poland
- Contact:
Re: Categories template and photos in category
Hi, thanks foranswer but unfortunatelly not everything is working for me. Look here: http://redline.com.pl/index.php?option= ... 81&lang=pl
Here are main categories. I'd like the names of them to be under pictures.
When you enter fe. STUNT there are subcategories. I would like to have them in one column, picture on the left, name on the right.
Then when you enter category, show pictures in 3 columns without names.
How to reach it?
Here are main categories. I'd like the names of them to be under pictures.
When you enter fe. STUNT there are subcategories. I would like to have them in one column, picture on the left, name on the right.
Then when you enter category, show pictures in 3 columns without names.
How to reach it?
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Categories template and photos in category
Hi, this needs to be customized, so you need to modify the templates of Phoca Gallery ...
if you have enlarged your medium pictures, you need to change the background boxes too, see:
https://www.phoca.cz/documents/2-phoca-g ... w-resizing
Jan
if you have enlarged your medium pictures, you need to change the background boxes too, see:
https://www.phoca.cz/documents/2-phoca-g ... w-resizing
Jan
If you find Phoca extensions useful, please support the project
-
thomas2411
- Phoca Newbie

- Posts: 4
- Joined: 26 Mar 2009, 21:07
- Location: Poland
- Contact:
Re: Categories template and photos in category
OK, I did it
Changed categories template for my own ang change display_image_categories to a different number 3. Although when I enter parameters now and save some parameters, display_image_categories is set back to 1. So I would have to add some option to list with my template, but I don't know where.
Then I changed a little bit of category template. I used checking if it is a category and just add some styles to float name to right, change widht etc.
Best regards
Tom
Then I changed a little bit of category template. I used checking if it is a category and just add some styles to float name to right, change widht etc.
Best regards
Tom
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Categories template and photos in category
Ok
If you find Phoca extensions useful, please support the project