Single Image in Category

Phoca Gallery - image gallery extension
yellowjersey
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 19 Sep 2008, 12:08

Single Image in Category

Post by yellowjersey »

Is is possible to have a single image instead of a folder in category view?

I know you can have a random image but I want to be able to pick one image only.

Thanks
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Single Image in Category

Post by caro84g »

Hi,

You need to hack the PHP code, then it is possible. Then it always takes the first image. See this post: viewtopic.php?f=1&t=1625#p8901

Then select 'random image' - it'll display the first image of the category

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)
yellowjersey
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 19 Sep 2008, 12:08

Re: Single Image in Category

Post by yellowjersey »

Thanks Carolien.

That is exactly the solution I was looking for.

Matt
yellowjersey
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 19 Sep 2008, 12:08

Re: Single Image in Category

Post by yellowjersey »

p.s. How can I mark this as solved?
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Single Image in Category

Post by caro84g »

Hi Matt,

only moderators and administrators can do that - So I did :|

And we usually do it when someone says 'it worked, thank you' or something like that :wink:
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)
yellowjersey
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 19 Sep 2008, 12:08

Re: Single Image in Category

Post by yellowjersey »

Well it certainly worked and saved my from any more nagging from a client!

Thanks

Matt
bulgarion
Phoca Member
Phoca Member
Posts: 15
Joined: 11 Sep 2008, 11:28

Re: Single Image in Category

Post by bulgarion »

yellowjersey wrote:Well it certainly worked and saved my from any more nagging from a client!

Hah :D It had the same use for me - complaint-saving code!
Post Reply