Hello,
I was wondering if it was possible to specify a thumbnail for the image, separate from the one automatically created by Phoca. For example, I have a gallery of furniture. I want the thumbnails to be a picture of a type of wood, and when scrolled over, the large image would show the furniture in that type of wood.
I realize I can go into the Media Manager and overwrite the thumbnail pictures with a new picture of the same name, but I don't want my client to need to do this every time.
Thanks for your help.
Ability to Specify thumbnails.
- caro84g
- Phoca Hero
- Posts: 1369
- Joined: 11 Feb 2008, 17:52
- Location: Holland
- Contact:
Re: Ability to Specify thumbnails.
Hi,
If I understand you correctly, you are now displaying several categories in the categories-layout. And you want to define the picture displayed besides the category-name?
Right now it is a random image selected from your category, if I am correct.
You can do that by changing the order in ordering (in stead of random). This way it always displays the first image of your category. Jan gave an explanation how you can change this:
I hope this is what you want, or a way to solve your problem.
Good luck,
Carolien
P.S. is the situation not what I think it is, it would help if you could post your webpage
If I understand you correctly, you are now displaying several categories in the categories-layout. And you want to define the picture displayed besides the category-name?
Right now it is a random image selected from your category, if I am correct.
You can do that by changing the order in ordering (in stead of random). This way it always displays the first image of your category. Jan gave an explanation how you can change this:
source:viewtopic.php?f=1&t=1148#p6583It 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
I hope this is what you want, or a way to solve your problem.
Good luck,
Carolien
P.S. is the situation not what I think it is, it would help if you could post your webpage
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)
Backup before you do any major change to your website (and test first)
-
- Phoca Newbie
- Posts: 2
- Joined: 27 Jun 2008, 18:48
Re: Ability to Specify thumbnails.
Thanks for the reply. No I am not talking about the thumb for category folders, but the actual thumb for the gallery. I'm using the switch image function and would like the thumb for the larger image to be a different image than the large image itself.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Ability to Specify thumbnails.
Hi,
so only overwriting PHP function will help.
Jan
so only overwriting PHP function will help.
Jan
If you find Phoca extensions useful, please support the project