debashis2016 / joomla-article-access

Automatically exported from code.google.com/p/joomla-article-access
0 stars 0 forks source link

Pdf generator does not make difference #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi
It seems to me that pdf preview (and maybe print preview and email shortcut as 
well) does not pay attention to the {access} mark ups.
Please advise...
Thanks

Original issue reported on code.google.com by pach...@gmail.com on 16 Sep 2010 at 5:33

GoogleCodeExporter commented 8 years ago
Hi
As you said for the other topic issue, it needs to trigger content pluggin.
The error in components\com_content\views\article\view.pdf.php is at line 68:

JPluginHelper::importPlugin('content', 'image');
$dispatcher->trigger('onPrepareContent', array (& $article, & $params, 0));

The first line call the content Plugin but it seems not to work.
Only the following line makes it:

JPluginHelper::importPlugin('content');

I just copy/paste it from the other file view.html.php
Can you understand why it needs to have only 'content' as parameter and not 
both 'content' and 'image' ?

Pierre

Original comment by pach...@gmail.com on 18 Sep 2010 at 8:31

GoogleCodeExporter commented 8 years ago
Seems to be an issue with Joomla. Only the 'image' plugin is called, and no 
other "content" plugins are called when generation PDFs. 
I'll post this to the Joomla tracker. 

Original comment by buca...@gmail.com on 31 Dec 2010 at 5:32

GoogleCodeExporter commented 8 years ago
This appears to be a known issue in Joomla but has not been fixed yet.

Original comment by buca...@gmail.com on 31 Dec 2010 at 5:50