Category image

Phoca Gallery - image gallery extension
mutala
Phoca Member
Phoca Member
Posts: 22
Joined: 08 Mar 2010, 19:21

Category image

Post by mutala »

Can I somehow choose the image shown in the "categories" view? That "use image instead of a folder icon"? If you got it and know something about it, I would appreciate much that you could tell me.

I didn't find anything related to this with search, documentation or Google.
reko
Phoca Professional
Phoca Professional
Posts: 407
Joined: 29 Dec 2008, 22:06

Re: Category image

Post by reko »

Hi,
in global configuration, it's possible to set the following:
Categories Image Ordering - If image will be displayed next to category name in Categories View, you can set which image from the category will be displayed (first, last, random, ...)
so, indirectly you can choose the image by sorting the images within the category and setting the parameters accordingly.
see documentation for more.
regards
rk
mutala
Phoca Member
Phoca Member
Posts: 22
Joined: 08 Mar 2010, 19:21

Re: Category image

Post by mutala »

But I'd like to have them arranged by date, yet I want the category image to be one from the middle.

Do I have to stab the code again?
reko
Phoca Professional
Phoca Professional
Posts: 407
Joined: 29 Dec 2008, 22:06

Re: Category image

Post by reko »

mutala wrote:Do I have to stab the code again?
I'm afraid so, yes.
mutala
Phoca Member
Phoca Member
Posts: 22
Joined: 08 Mar 2010, 19:21

Re: Category image

Post by mutala »

Then if someone would be kind and tell me about the structure of Phoca-table, as I guess it would be best choice to add link like the publish in images, like add a parameter "frontimage", and then we could read that on the category "folder image". If you're following and know something, please help. :)
reko
Phoca Professional
Phoca Professional
Posts: 407
Joined: 29 Dec 2008, 22:06

Re: Category image

Post by reko »

i'm sorry, i'm not a programmer...
mutala
Phoca Member
Phoca Member
Posts: 22
Joined: 08 Mar 2010, 19:21

Re: Category image

Post by mutala »

I'm so close to the solution, I assume. If I only knew where $this is being defined, I might be able to make my own additions.

I got the chosen image to be shown, but it is as full sized image. (I put it through article images which can be chosen from back end). Now I'd like to know if it's possible to use the Phoca gallery's resizer/thumb maker or whatever to make thumbs of all the images uploaded to the /images/articles/ directory.
Post Reply