display categories random image

Phoca Gallery - image gallery extension
donkeyslo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 12 Mar 2009, 15:32

display categories random image

Post by donkeyslo »

Hi!
Can't find if this is possible or not, have googled and searched the forum but can't find the answer.
I have images of different sizes in the categories, for example 300x450px and 450x300px, so when i display categories, some thumbnails are 75x100px and some 100x75px. I don't want to crop the 100px height automatically, because it crops in the middle of the image. Is there an option to turn off the random images for categories so for example only the thumbnail of the last uploaded image of a category would be displayed?
Tnx for the answer ...
Greetings, Matej
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: display categories random image

Post by Jan »

Hi, for disabling cropping images see parameters:

https://www.phoca.cz/documents/2-phoca-g ... -menu-item

For not displaying random image, you can display folder icon or you can set displaying of firt image in category, see:
https://www.phoca.cz/documents/2-phoca-g ... ent/24-faq ( 6. )

Jan
If you find Phoca extensions useful, please support the project
donkeyslo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 12 Mar 2009, 15:32

Re: display categories random image

Post by donkeyslo »

Thank you :twisted:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: display categories random image

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
marks
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 18 Jun 2009, 21:29

Re: display categories random image

Post by marks »

I just implemented this in version 2.2.4 and the line numbers given in FAQ #6 should be changed to 221 in categories and 551 in category. Works like a charm!
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: display categories random image

Post by caro84g »

changed in documentation, thank you for mentioning :|
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