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
Joomla plugins don't work in file description
-
- Phoca Member
- Posts: 20
- Joined: 22 Oct 2013, 15:25
- Location: Poland
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Joomla plugins don't work in file description
Hi, see:
https://www.phoca.cz/documents/16-joomla ... t-articles
as default it does not accept content plugins.
Jan
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
-
- Phoca Member
- Posts: 20
- Joined: 22 Oct 2013, 15:25
- Location: Poland
Re: Joomla plugins don't work in file description
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:
So according the description in the tutorial - should the code be as this one below?
Actually I tried this code but unfortunately without result 
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;
Code: Select all
echo JHTML::_('content.prepare', $pdDescription);

- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Joomla plugins don't work in file description
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
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
-
- Phoca Newbie
- Posts: 1
- Joined: 11 Feb 2015, 13:50
Re: Joomla plugins don't work in file description
Hi at all,
I have solved the problem this way:
components/com_phocadownload/views/category/tmpl/default_files.php
line 244:
choosing "description below" in the display options.
In this way you can add multiple documents to one.
Nicola.
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;
In this way you can add multiple documents to one.
Nicola.
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Joomla plugins don't work in file description
Ok
If you find Phoca extensions useful, please support the project