Phoca Gallery Plugin: Show images from all categories?

Phoca Gallery modules - modules for Phoca Gallery extension
TheBearded
Phoca Member
Phoca Member
Posts: 13
Joined: 07 Apr 2012, 13:11

Phoca Gallery Plugin: Show images from all categories?

Post by TheBearded »

Hi,

I am using the gallery plugin to display a single random image from phoca gallery on the main page of my website. This works fine, but the image always comes from the gallery I have specified with categoryid=x.

Is it possible to display a random image from ANY of my galleries? Or is it possible to add more than one category ID to the plugin? That would be very nice...

Thanks and regards,
Ben
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Plugin: Show images from all categories?

Post by Jan »

Hi, yes this is possible, just don't select any category - (if you have selected yet, just unselect categories in category list of the module options, so then images will be taken from all the categories)

Jan
If you find Phoca extensions useful, please support the project
TheBearded
Phoca Member
Phoca Member
Posts: 13
Joined: 07 Apr 2012, 13:11

Re: Phoca Gallery Plugin: Show images from all categories?

Post by TheBearded »

Hi Jan,

thanks for the reply, but I dont get it - I am embedding the plugin by using

Code: Select all

{phocagallery view=category|categoryid=3|fontcolor=#483030|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|
detail=2|displayname=1|imagerandom=1|displaydetail=1|displaydownload=0|float=right|namefontsize=12}
If I remove the categoryid parameter, nothing will show... and the plugin itself (in the plugin manager) does not have any options to select.

Could you let me know where exactly I have to deselect the categories?

Thanks and regards,
Ben
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Plugin: Show images from all categories?

Post by Jan »

Aha, now I understand, I thought about other plugin, sorry for misunderstanding. No, in plugin, this only work for one category (this is because of saving memory on server, then it can happen, that all image from all categoires will be loaded, which can then slow down the server) ... so then this needs to be directly customized in the code :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply