Execute Plugin in detail View?

Phoca Gallery - image gallery extension
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Execute Plugin in detail View?

Post by marcel77 »

Hi all,

is here someone, who can give me a hint, to get a plugin code workable in picture detail view? I try to use simplecaddy with Phoca, but "add to cart" is only working in category view. in detail view I only see the text: "{simplecaddy code=10001 picname=xxx.JPG classsfx=-ww}"

Thanks a lot.

Marcel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Execute Plugin in detail View?

Post by Jan »

Hi, first of all, which version of Phoca Gallery do you use? Which detail view do you use? (iframe or image method)? Where do you want to display the plugin code?

https://www.phoca.cz/documents/2-phoca-g ... ntegration
Description below the image in detail window displays the plugin code too. :idea:

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Execute Plugin in detail View?

Post by marcel77 »

Hi Jan,

thanks for reply. Sorry that I´m so late, but I don´t got a notification email for new answer.

What do you mean with Iframe or image? Sorry, that I don´t know. At the moment I use Highslide JS (pictures only) because plugin code in detail view doesn´t work at all detail views in my case. Like here:

Image

In your examples I can´t find a detail view with comments and plugin? I use Phoca Gallery 4.3.0.

Best regards
Marcel
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Execute Plugin in detail View?

Post by marcel77 »

The category view is working fine:

Image

Marcel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Execute Plugin in detail View?

Post by Jan »

Hi, see the difference between iframe and image:
https://www.phoca.cz/documents/50-phoca/ ... al-advices (8)

if you run iframe method, there the description or other parts of html can be rendered, when you run image method, then it is limited to the features of the current javascript popup library (some can display description, some not - mostly at text only not as html). So e.g. commenting in detail window is only possible when iframe method is used.

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Execute Plugin in detail View?

Post by marcel77 »

Hi Jan,

but screenshot was from IFrame method (Highslide JS)? Or I don´t understand your answer. Sorry...

Marcel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Execute Plugin in detail View?

Post by Jan »

Hi, which version of Phoca Gallery do you run? The detail window:
components\com_phocagallery\views\detail\tmpl\default.php
includes description part which allows to run plugin codes:
JHtml::_('content.prepare', $titleDesc . $this->item->description, 'com_phocagallery.item')

Is the plugin active and published? Is it set in description of detail window?

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Execute Plugin in detail View?

Post by marcel77 »

Jan wrote:Hi, which version of Phoca Gallery do you run?
4.3.0
Jan wrote:The detail window:
components\com_phocagallery\views\detail\tmpl\default.php
includes description part which allows to run plugin codes:
JHtml::_('content.prepare', $titleDesc . $this->item->description, 'com_phocagallery.item')
:o :( :? ?? Therefor Modal Box and Highslide JS should work?
Jan wrote: Is the plugin active and published? Is it set in description of detail window?

Jan
Yes, as you see in my second screenshot, is it working fine in the overview.

Sorry, but I´m new with joomla and Phoca and doesn´t know so much.

Marcel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Execute Plugin in detail View?

Post by Jan »

What is the format of the plugin, does it include some breaks (is the plugin displayed on more rows - I don't mean in frontend, but in the editor)?
What if you update to version 4.3.1?

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Execute Plugin in detail View?

Post by marcel77 »

Hi Jan,

I start trying today with update to 4.3.1 :-) But It still doesn´t work.

it is the normal simplecaddy plugin with no breaks within the code. The same code (on the same picture) is working in overview and don´t work in detail view. I try with all detail versions. The popup and no popup doesn´t work, too.

Marcel
Post Reply