Page 1 of 1
Ability to Specify thumbnails.
Posted: 27 Jun 2008, 18:55
by whippersnap81
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.
Re: Ability to Specify thumbnails.
Posted: 28 Jun 2008, 11:54
by caro84g
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:
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
source:
viewtopic.php?f=1&t=1148#p6583
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
Re: Ability to Specify thumbnails.
Posted: 28 Jun 2008, 17:30
by whippersnap81
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.
Re: Ability to Specify thumbnails.
Posted: 30 Jun 2008, 10:09
by Jan
Hi,
so only overwriting PHP function will help.
Jan