Phoca Gallery » List Of Categories (Categories View)

Phoca Gallery - image gallery extension
patbe60
Phoca Member
Phoca Member
Posts: 20
Joined: 09 Feb 2011, 16:22

Phoca Gallery » List Of Categories (Categories View)

Post by patbe60 »

Hello

After Upgrading to PG 3.0.RC5 I don't see any image when choosing Phoca Gallery » List Of Categories (Categories View) in the menu options. I only can see images when selecting a specific category.

Does anybody have the same problem?

Regards Patrik
patbe60
Phoca Member
Phoca Member
Posts: 20
Joined: 09 Feb 2011, 16:22

Re: Phoca Gallery » List Of Categories (Categories View)

Post by patbe60 »

I have seen some changes in components/com_phocagallery/models/categories.php:

As soon as I uncomment the following code:

Code: Select all

// Filter by language
		$whereLang = '';
		if ($this->getState('filter.language')) {
			$whereLang =  ' AND cc.language IN ('.$this->_db->Quote(JFactory::getLanguage()->getTag()).','.$this->_db->Quote('*').')';
		}
the displaing of categories view works fine. As far as I can see the problem only happens, when categories in the categories view have subcategories. May be there is a problem in the code above? I don't have any idea about php.

Regards Patrik
patbe60
Phoca Member
Phoca Member
Posts: 20
Joined: 09 Feb 2011, 16:22

Re: Phoca Gallery » List Of Categories (Categories View)

Post by patbe60 »

Same problem then in components/com_phocagallery/models/category.php
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery » List Of Categories (Categories View)

Post by Jan »

Hi, if your categories and images were created in previous development versions, they don't include the information about language, the categories and images needs to be created newly or the info about the language should be added manually in the database, the language column should be set to "*" as all languages.

Jan
If you find Phoca extensions useful, please support the project
patbe60
Phoca Member
Phoca Member
Posts: 20
Joined: 09 Feb 2011, 16:22

Re: Phoca Gallery » List Of Categories (Categories View)

Post by patbe60 »

Thank you very much. This did solve the problem.

Regards Patrik
infomadness
Phoca Member
Phoca Member
Posts: 14
Joined: 07 Jun 2011, 17:24

Re: Phoca Gallery » List Of Categories (Categories View)

Post by infomadness »

patbe60 wrote:Thank you very much. This did solve the problem.

Regards Patrik
How did you solve the problem?
infomadness
Phoca Member
Phoca Member
Posts: 14
Joined: 07 Jun 2011, 17:24

Re: Phoca Gallery » List Of Categories (Categories View)

Post by infomadness »

Jan wrote:Hi, if your categories and images were created in previous development versions, they don't include the information about language, the categories and images needs to be created newly or the info about the language should be added manually in the database, the language column should be set to "*" as all languages.

Jan
I don't see language column in my phocagallery tables.. can you please explain this further?

I can't see any photos in category section.. Please help.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery » List Of Categories (Categories View)

Post by Jan »

Hi, you need to see the database columns, or to add the images into the system again, there were some changes in the development version (the language feature was finished in last RC), so installing the gallery newly will solve this problem.

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