[SOLVED] PG plugins and K2

Phoca Gallery plugins - plugins for Phoca Gallery extension
danss2
Phoca Member
Phoca Member
Posts: 31
Joined: 29 Sep 2011, 11:01

[SOLVED] PG plugins and K2

Post by danss2 »

I've found a few old discussions on here talking about incompatibility with K2 articles. Have this issue been resolved at all? I mean - anyone found a workaround that issue yet?
Last edited by danss2 on 10 Jul 2012, 01:21, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PG plugins and K2

Post by Jan »

Hi, I have no experiences with K2 and got no information about some problem in latest version :idea:

Jan
If you find Phoca extensions useful, please support the project
danss2
Phoca Member
Phoca Member
Posts: 31
Joined: 29 Sep 2011, 11:01

Re: PG plugins and K2

Post by danss2 »

Well, to give a little more info on this (which, as I found out from old posts on here about it, is still the same) - it just plain doesn't work.
I go into an editor, put the code for the slideshow, but it doesn't show on the page at all (despite the fact, that code shows up where it supposed to(if you'd look at the code from the front)).
At the same time it does work perfectly with default content management system...
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9608
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: PG plugins and K2

Post by Benno »

Hi,
today I ran some tests regarding this issue.
I installed the current K2 version into my Joomla! 2.5 test environment.
I didn't change anything in the K2 settings. (Default settings)
I created a K2 category and K2 item.
Then I paste 5 valid codes of the five most popular Phoca Content Plugins into the K2 Article (item)
1.) Phoca Gallery Plugin
2.) Phoca Slideshow Plugin
3.) Phoca Simple Plugin
4.) Phoca Download Plugin
5.) Phoca Maps Plugin
Then I created a Menu item to call this K2 Article (item) in Frontend.
In Frontend only four Plugins are visible. Neither Phoca Gallery Slideshow nor Phoca Gallery Slideshow Plugin code are visible.
No idea, why..

Kind regards,
Benno
danss2
Phoca Member
Phoca Member
Posts: 31
Joined: 29 Sep 2011, 11:01

Re: PG plugins and K2

Post by danss2 »

That's exactly what I'm experiencing...
Hope some one had this issue and figured out the way out :-)
workino
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 24 May 2012, 16:37

Re: PG plugins and K2

Post by workino »

I solved the problem about phoca slideshow

u need to look for it in plugins/content/phocagalleryslideshow/phocagalleryslideshow.php

if ($view == 'article' || $view == 'featured' ||($view == 'category' && $layout == 'blog'))

and replace with:

if ($view == 'article' || $view == 'featured' || $view == 'item' ||($view == 'category' && $layout == 'blog'))

Problem was phoca slideshow looking only for joomla "articles tag".

After add $view == 'item' in possibility choice all goes well.


Bye
Workino
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9608
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: PG plugins and K2

Post by Benno »

Confirmed! This works in my test environment as well.

Thank you & kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PG plugins and K2

Post by Jan »

Hi, thank you for this info, I will add this to next release.

Jan
If you find Phoca extensions useful, please support the project
workino
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 24 May 2012, 16:37

Re: PG plugins and K2

Post by workino »

you are welcome :D
IT Consulent.be
Phoca Member
Phoca Member
Posts: 24
Joined: 07 Mar 2011, 11:10

Re: PG plugins and K2

Post by IT Consulent.be »

Thanks for solving this problem.
Post Reply