Page 1 of 2

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

Posted: 21 Jun 2018, 10:19
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 .....

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

Posted: 23 Jun 2018, 15:18
by Jan
Hi, is displaying of plugin codes enabled in Phoca PDF options?

Jan

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

Posted: 26 Jun 2018, 14:05
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

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

Posted: 26 Jun 2018, 14:16
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

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

Posted: 27 Jun 2018, 07:05
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

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

Posted: 29 Jun 2018, 08:24
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

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

Posted: 01 Jul 2018, 12:13
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

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

Posted: 02 Jul 2018, 11:31
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

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

Posted: 05 Jul 2018, 13:12
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

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

Posted: 05 Jul 2018, 14:51
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