[changed] display only subcategory names

Phoca Gallery - image gallery extension
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

[changed] display only subcategory names

Post by caro84g »

Hi,

I updated my website with lots of new pictures and created subcategories. Now I made a menu link to a parent category and when you see the pictures you see the subcategories and some pictures. This is exactly what I want.

To distinguish the subcategories you have to display the names of the images. (otherwise you see only 3 folders icons) I would like only to display the names of the subcategories and not displaying the names of the images. (because they're just the names of the JPEG, and I might change it one day, but not now)

The website is: http://www.boerbert.nl/index.php/appart ... Itemid=103

I hope someone can help me,

thanks in advance,

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

Re: [changed] display only subcategory names

Post by Jan »

Hi, you can disable or enable them only together (category name + image name) There is no possibility to enable e.g. category name and disable e.g. image name :(

Jan
If you find Phoca extensions useful, please support the project
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: [changed] display only subcategory names

Post by caro84g »

Can I assign a specific picture to the category, which is displayed instead of the folder icon? So each category has its own picture. This might be the first (or last) picture in that category, but I prefer it not to be, if that's possible. Well I'll hope this is possible.

Thanks in advance,

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

Re: [changed] display only subcategory names

Post by Jan »

It worked so, but then I did the random image ... the image will be taken as random image from the category, if there is no image, then from the subcategories ....

so you can enable the random image (in parameters) and then you can change the random to e.g. first image, in the php code, e.g.:

CATEGORY VIEW:
components\com_phocagallery\models\category.php
row 401 +

FROM: ' ORDER BY RAND()'; TO ' ORDER BY ordering'; ... then the first image (ordering e.g. 1) will be displayed

CATEGORIES VIEW:
components\com_phocagallery\models\categories.php
row 189 + (the same as by category view)

Jan
If you find Phoca extensions useful, please support the project
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: [changed] display only subcategory names

Post by caro84g »

Hey Jan,

in the plugin forum stood a nice question, which would be a better solution. Would you be so kind to answer that one. Or answer it here.

Question:
viewtopic.php?f=9&t=1174#p6651
How can you display sub-category items as category items.
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)
redrobin
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Jun 2011, 20:50

Re: [changed] display only subcategory names

Post by redrobin »

In parameters I have set

Display image instead of folder icon: yes

Category Image Ordering: special

Then set the image I wanted ti first in list


But I still get random images on folders each time it refreshes

Can any one help me

RR
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [changed] display only subcategory names

Post by Jan »

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