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

Phoca PDF - creating PDF documents in Joomla! CMS
muecke06
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 21 Jun 2018, 10:10

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

Post by muecke06 »

Hello together,

I'm working on a website with the Article Anywhere plugin from Regular Labs. The display of content in html works perfectly.

If I want to generate a PDF from the content then the Article Anywhere code will not be executed / interpreted. This code will be visible in the PDF.

Code: Select all

{article articles="3"}[div class="tdbl-text lt-text"][layout template="protostar" layout="tdbl-field"][/div]{/article}
What am I doing wrong?

Best regards
muecke06

P.S. Sorry, this is google-english .....
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
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, is displaying of plugin codes enabled in Phoca PDF options?

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,

Displaying of plugin codes is enabled.

I did a few more tests.
Standard Joomla {field] works correctly in PDF. Standard Joomla Field is a content plug-in (said RegularLabs Support). Article Anywhere is a system plug-in.
The RegularLabs Suppert said: The problem could be that Phoca PDF does not load system plugins.

What are you saying?

Steffen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
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, yes, in article only content plugins are loaded, not system plugins. Phoca PDF renders the article but running system plugins happens after the content is done and sent to render so there is no posibility to read system plugins. :-(

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,

As I understand it, I have no chance and you also have no way to run the System PlugIns while the article is being rendered?

The RegularLabs Support says:
Yep, it needs to initiate all plugins. Both Content and System plugins can (and should) get triggered on onContent stuff.
Steffen
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 »

Hello Jan

Do you think that you could take another look at Phoca PDF in this regard, that the system plug-ins are included in the PDF generation?

Regards
Steffen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
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, as written above, the rendering of article (it does not matter if html or pdf) happens before system plugin is applied. So the system changes output but after it is created yet, so I think, this is not possible in Joomla! yet :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

The RegularLabs support says to your statement:
That is simply not true.
In fact, system plugins get called before content plugins.
And system plugins can be triggered on all the same events that content plugins can (like onContentPrepare).
What is right and how do I get on here?

I would also like to test with you at this point if you could deal with the topic.
My site is offline and I can test here for you.

Best regards
Steffen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
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, then let me know on which event the system plugin reacts so I can take a look at it. Phoca PDF works only with article output where content plugins are active, I need to take a look if system plugin which can change all the site output can do the same behaviour (and test if if there will be no security problems or memory problems). I for now don't have any experiences with implementing system plugin into the article output. So any clue advice can help me regarding discovering and test it.

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,

Unfortunately, I am not a developer, so that I can certainly help you only conditionally. The test is no problem.

I have forwarded your request to the Peter of RegularLabs. He says:
In this case (Articles Anywhere) it concerns the onContentPrepare event.
But it should take pretty much all content events into consideration, like onContentBeforeDisplay and onContentAfterDisplay.


Do you understand his statement? Can you work with it?

Regards
Steffen
Post Reply