Phoca Image Modul 3

Phoca Gallery - image gallery extension
daniel
Phoca Member
Phoca Member
Posts: 10
Joined: 25 Feb 2011, 16:11
Location: Germany

Phoca Image Modul 3

Post by daniel »

Hey there,
at Joomla 1.5.22 it was possible to select multiple categories.

Now at Joomla 1.6 there is a drop down menue, where i can select only one category. I want to use the image module as "last upload" module, so it should show the newest pictures of multible categories.

Is there a way to choose more categories?

Thank you
Last edited by daniel on 22 Mar 2011, 16:05, edited 3 times in total.
daniel
Phoca Member
Phoca Member
Posts: 10
Joined: 25 Feb 2011, 16:11
Location: Germany

Re: Phoca Image Modul 3

Post by daniel »

With PG Image Module V3 it isn't possible to select mulitple categories. Because, there is a dropdownbenü, and no selectionbox. I found the answer for this problem.

Maybe it's not the best, but it works.
You have to edit mod_phocagallery_image.php

First step: delete line 62
$category_id = $params->get( 'category_id', array() );
Then jump to line 505
before
// Category ID - If the category is set, the images are taken from this category and the selection above is not accepted
// 1) User has selected categories
if ($category_id != '' && is_array($category_id) && count($category_id)) {
$implodeAllowedCategoriesArray = implode( ',', $category_id);
}
// 2) User has selected only one catetory
...
...
you have to add
$category_id = array(8,9,10,...);
in the clamps you can appoint the category id's whith should be shown with the image module.
Thats It.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Image Modul 3

Post by Jan »

Hi, I will take a look at it. There should be a multiple select box.

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