[SOLVED] PG plugins and K2
-
- Phoca Member
- Posts: 31
- Joined: 29 Sep 2011, 11:01
[SOLVED] PG plugins and K2
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.
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: PG plugins and K2
Hi, I have no experiences with K2 and got no information about some problem in latest version 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 31
- Joined: 29 Sep 2011, 11:01
Re: PG plugins and K2
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...
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...
- Benno
- Phoca Hero
- Posts: 9608
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: PG plugins and K2
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
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
-
- Phoca Member
- Posts: 31
- Joined: 29 Sep 2011, 11:01
Re: PG plugins and K2
That's exactly what I'm experiencing...
Hope some one had this issue and figured out the way out
Hope some one had this issue and figured out the way out

-
- Phoca Newbie
- Posts: 2
- Joined: 24 May 2012, 16:37
Re: PG plugins and K2
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
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
- Benno
- Phoca Hero
- Posts: 9608
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: PG plugins and K2
Confirmed! This works in my test environment as well.
Thank you & kind regards,
Benno
Thank you & kind regards,
Benno
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: PG plugins and K2
Hi, thank you for this info, I will add this to next release.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 24
- Joined: 07 Mar 2011, 11:10
Re: PG plugins and K2
Thanks for solving this problem.