Content no show in PDF with Article Anywhere (Regular Labs)

Phoca PDF - creating PDF documents in Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Content no show in PDF with Article Anywhere (Regular Labs)

Post by Jan »

Hi, I have written it to feature request list to take a look at it. It is not so easy, becasue the content in managed in one content plugin:

onBeforeDisplayPDFContent

So I need to tost if the loops is even possible :idea: - Managing the event in onBeforeDisplayPDFContent to read the article conent and then have another event for system plugin inside content event :idea:

Jan
If you find Phoca extensions useful, please support the project
muecke06
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 21 Jun 2018, 10:10

Re: Content no show in PDF with Article Anywhere (Regular Labs)

Post by muecke06 »

Hi Jan,

I think I understand your idea. It might be a solution.
If you've written the code, I'd like to test a fix for PhocaPDF on a trial installation.

Can I help you anyway somehow?
Should I pass your idea to RegularLabs, what do they mean?

Steffen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Content no show in PDF with Article Anywhere (Regular Labs)

Post by Jan »

Hi,

the code changed by system plugin can be set for some variable e.g. this way:

Code: Select all

JPluginHelper::importPlugin( 'system' );
$dispatcher = JEventDispatcher::getInstance();
JPluginHelper::importPlugin('plgSystemNameOfThePlugin'); 
$dispatcher->trigger('onNameOfTheEvent', array(&$text));
But unfortunately, there are two much variables I don't know:

- the system name of the plugin
- the event name which can change the text
- the parameters of the event (if it is set as reference, etc.)

The next problem is, I think is is much more a request on specific modification than core feature (because it handles specific plugin only :-( )

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