Page 1 of 1

Joomla plugins don't work in file description

Posted: 01 Dec 2014, 10:06
by MarioP
Hello,
I try to put a code ( e.g. {product id=51}) in the file description (File edit). The code (used by VM Product Snapshot Joomla content plugin) should render a view of the product on the website. Unfortunately instead of that I have only the code visible on the website. Does the phoca download file description respect joomla plugins? Is there any option to enable that? Of course the code works correctly for example for K2 articles...For Phoca Download unfortunately do not ...

Phoca Download 2.1.9
J! 2.5.27

Re: Joomla plugins don't work in file description

Posted: 01 Dec 2014, 22:36
by Jan
Hi, see:
https://www.phoca.cz/documents/16-joomla ... t-articles

as default it does not accept content plugins.

Jan

Re: Joomla plugins don't work in file description

Posted: 02 Dec 2014, 10:50
by MarioP
Ok, I will be appreciate for any help ( I'm not a programmer).
If I understood correctly from the article I need to modify the following file:
\components\com_phocadownload\views\file\tmpl default.php
I see there the following code:

Code: Select all

echo $pdDescription;
So according the description in the tutorial - should the code be as this one below?

Code: Select all

echo JHTML::_('content.prepare', $pdDescription);
Actually I tried this code but unfortunately without result :(

Re: Joomla plugins don't work in file description

Posted: 03 Dec 2014, 19:29
by Jan
Hi, there is an "if condition"

So depends on in which condition you have added it.

Try to enable/disable parameter: Display specific layout in Options. And test it with enabled or disabled specific layout.

Jan

Re: Joomla plugins don't work in file description

Posted: 11 Feb 2015, 14:02
by operedigitali
Hi at all,
I have solved the problem this way:

components/com_phocadownload/views/category/tmpl/default_files.php

line 244:

Code: Select all

case 2:
     $pdFileDescBottom	= '<div class="pd-fdesc">'.JHTML::_('content.prepare', $v->description).'</div>';
break;
choosing "description below" in the display options.

In this way you can add multiple documents to one.


Nicola.

Re: Joomla plugins don't work in file description

Posted: 12 Feb 2015, 23:14
by Jan
Ok