Joomla plugins don't work in file description

Phoca Download - download manager
MarioP
Phoca Member
Phoca Member
Posts: 20
Joined: 22 Oct 2013, 15:25
Location: Poland

Joomla plugins don't work in file description

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

Re: Joomla plugins don't work in file description

Post by Jan »

Hi, see:
https://www.phoca.cz/documents/16-joomla ... t-articles

as default it does not accept content plugins.

Jan
If you find Phoca extensions useful, please support the project
MarioP
Phoca Member
Phoca Member
Posts: 20
Joined: 22 Oct 2013, 15:25
Location: Poland

Re: Joomla plugins don't work in file description

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

Re: Joomla plugins don't work in file description

Post 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
If you find Phoca extensions useful, please support the project
operedigitali
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 11 Feb 2015, 13:50

Re: Joomla plugins don't work in file description

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

Re: Joomla plugins don't work in file description

Post by Jan »

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