Content Plugin not working

Phoca Download - download manager
FDE68
Phoca Member
Phoca Member
Posts: 12
Joined: 29 Sep 2011, 11:05

Content Plugin not working

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Content Plugin not working

Post 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
If you find Phoca extensions useful, please support the project
FDE68
Phoca Member
Phoca Member
Posts: 12
Joined: 29 Sep 2011, 11:05

Re: Content Plugin not working

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Content Plugin not working

Post 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
If you find Phoca extensions useful, please support the project
FDE68
Phoca Member
Phoca Member
Posts: 12
Joined: 29 Sep 2011, 11:05

Re: Content Plugin not working

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Content Plugin not working

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply