Page 1 of 1
Phoca Image Modul 3
Posted: 19 Mar 2011, 18:54
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
Re: Phoca Image Modul 3
Posted: 22 Mar 2011, 16:03
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.
Re: Phoca Image Modul 3
Posted: 25 Mar 2011, 00:26
by Jan
Hi, I will take a look at it. There should be a multiple select box.
Jan