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
Phoca Image Modul 3
-
daniel
- Phoca Member

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

- Posts: 10
- Joined: 25 Feb 2011, 16:11
- Location: Germany
Re: Phoca Image Modul 3
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
before
Thats It.
Maybe it's not the best, but it works.
You have to edit mod_phocagallery_image.php
First step: delete line 62
Then jump to line 505$category_id = $params->get( 'category_id', array() );
before
you have to add// 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
...
...
in the clamps you can appoint the category id's whith should be shown with the image module.$category_id = array(8,9,10,...);
Thats It.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Image Modul 3
Hi, I will take a look at it. There should be a multiple select box.
Jan
Jan
If you find Phoca extensions useful, please support the project