Page 1 of 2

Execute Plugin in detail View?

Posted: 24 Sep 2016, 14:14
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

Re: Execute Plugin in detail View?

Posted: 25 Sep 2016, 15:31
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

Re: Execute Plugin in detail View?

Posted: 14 Oct 2016, 20:58
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

Re: Execute Plugin in detail View?

Posted: 14 Oct 2016, 21:09
by marcel77
The category view is working fine:

Image

Marcel

Re: Execute Plugin in detail View?

Posted: 19 Oct 2016, 14:37
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

Re: Execute Plugin in detail View?

Posted: 19 Oct 2016, 14:45
by marcel77
Hi Jan,

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

Marcel

Re: Execute Plugin in detail View?

Posted: 19 Oct 2016, 15:28
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

Re: Execute Plugin in detail View?

Posted: 19 Oct 2016, 16:24
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

Re: Execute Plugin in detail View?

Posted: 22 Oct 2016, 13:31
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

Re: Execute Plugin in detail View?

Posted: 22 Oct 2016, 21:45
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