(sub) category header image

Phoca Gallery - image gallery extension
hugosnel
Phoca Member
Phoca Member
Posts: 12
Joined: 29 Jul 2009, 12:03

(sub) category header image

Post by hugosnel »

I am putting all categorie images in subcategories an I would like to see the first image of each subcat displayed on the main categorie page.
... the option to chose an image (just below the date) will not show me my images, it proposes only the images which are in /images/stories. My default image dir in the main config is set to images/phocagallery
To make it work I need to insert an image in the description , this does not seem logic.
What to do


I have installed emagus PhocaFlow but it does not seem to offer the solution to my demand.
TIA
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: (sub) category header image

Post by Jan »

Hi, there is no such option, this needs to be customized in category view template:

components/com_phocagallery/views/category/tmpl/default.php

Jan
If you find Phoca extensions useful, please support the project
hugosnel
Phoca Member
Phoca Member
Posts: 12
Joined: 29 Jul 2009, 12:03

Re: (sub) category header image

Post by hugosnel »

Thank you Jan,

Can you please tell me the custom code to add?
TIA
Hugo
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: (sub) category header image

Post by Jan »

Hi, I didn't do such customization so I don't know such code :(

Jan
If you find Phoca extensions useful, please support the project
hugosnel
Phoca Member
Phoca Member
Posts: 12
Joined: 29 Jul 2009, 12:03

Re: (sub) category header image

Post by hugosnel »

Hi,
I have another linked question ..
I would like to display ONLY the subcategories of a main category in a category list layout ...
The other main categories i do not want to see them in this list;
Any magic solution?
TIA
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: (sub) category header image

Post by caro84g »

Hi,

if the main category contains only subcategories then it's quite easy:

- create a menu item of the type category layout.
- set the setting such that category(thumbnails) aren't displayed, but category(categories) is.

Regards, Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
hugosnel
Phoca Member
Phoca Member
Posts: 12
Joined: 29 Jul 2009, 12:03

Re: (sub) category header image

Post by hugosnel »

Even if I have several main categories?
I want the layout to be like the category list layout ie subcat image + description , all listed in one colum underneath each other ..
http://bois-francais.fr/fr/bois-brut
I do want the acaia, aulne an bouleau, which are the subcats of bois brut but not the other main cats: bois sur mesure and produits finis!
Can you tell me how to get french texts in the subcat info please?
TIA, bedankt!
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: (sub) category header image

Post by caro84g »

Hi,

if you want to have the categories view with details (like description and such), then you need to create a phoca gallery category list layout and use the 'hide parameters' in the parameters(component) - 2nd box on the right - to hide the categories you don't want to see.

Regards, Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Post Reply