Page 1 of 1

Content Plugin not working

Posted: 21 Apr 2020, 15:22
by FDE68
Hallo, i use content Plugins (used with {xyz-params} inside content) - and it works.
Now i need to use such this plugin inside of a download item.
In the text field, yes i can fill in text which ist shown in frontend - but the plugin did not work. I can seen the code in frontend.

Whay are plugins not working?
Is there anything to configure? I searched - but did not found. Or is there another plugin ... which i need to install?
Thanks a lot for quick help.

Best regards
Frank

Re: Content Plugin not working

Posted: 21 Apr 2020, 15:30
by Jan
Hi, content plugins work with Joomla! articles and parts like descriptions, etc. in component which are ready to accept content plugins.

So the question is, where exactly did you paste the plugin? In which part? Can you paste a screenshot?

Jan

Re: Content Plugin not working

Posted: 21 Apr 2020, 15:40
by FDE68
Oh, thanks for the quick reply.
We have two situations - both not working.

Basic was, that a module contains the code. And the Module ist setup inside the Dowload-Item - the text field, which ist equal to editors of content-item inside your phoca com.

The second is, to put the code direct into the text-field of a download item (which is normal, it is content-item).

See screennshot
https://www.lafim.de/files/phoca.png

Thanks and best regards
Frank

Re: Content Plugin not working

Posted: 21 Apr 2020, 16:10
by Jan
Hi,

2) which module do you exactly use? You can enable content plugins in some modules with help of this parameter: Prepare Content, see image:

Image
This is Cutom HTML module

1) Where exactly do you display the description, in Phoca Download the description can use content plugin in category or categories view.

In item view, this needs to be customized:
components\com_phocadownload\views\file\tmpl\default.php

line cca:

FROM:

Code: Select all

$pdDescription .= '<div class="pd-fdesc">'.$v->description.'</div>';
TO:

Code: Select all

$pdDescription .= '<div class="pd-fdesc">'.JHTML::_('content.prepare', $v->description).'</div>';
Jan

Re: Content Plugin not working

Posted: 21 Apr 2020, 16:14
by FDE68
OK, you told me soemthing new about the basic module!!!
Interesting, that the module has this plugin-code since a longer period and worked. Now we started to use it inside a download item, ... but now it is working!

Thanks a lot - verygood!
Best regards
Frank

Re: Content Plugin not working

Posted: 21 Apr 2020, 16:15
by Jan
Ok, great to hear it.

Jan