How to make PhocaPDF render a new content type

Phoca PDF - creating PDF documents in Joomla! CMS
Charles
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 May 2009, 09:09

How to make PhocaPDF render a new content type

Post by Charles »

Hello Jan,

New to PhotoPDF and trying to solve a particular case with it.
Most of my contents has been created using a Joomsuite Resource, a commercial component.
I found out that PhocaPDF is not rendering these contents. Please see the attached screenshot.

I saw the code In files/phocapdf/phocapdf.php.
Is that the right place to try to code this? a case 'com_resource' block next to 'com_content' (line 84)
I'm asking because, my test seems ignored.

May you provide me with some hints, tips and advice.
In advance, thanks.
-Charles
Charles
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 May 2009, 09:09

Re: How to make PhocaPDF render a new content type

Post by Charles »

Hi again,

I get to know that the install process manage to add phoca files in the joomla content component.
So the place to put the code is in /libraries/joomla/document/phocapdf/phocapdf.php

But what next? I'll be trying to find this.
I'll send you back my results.
Joomsuite components are very useful and you may want PhocaPDF to support them.
In fact, only a good PDF render is missing actually; PhocaPDF seems to be a solution.

Your advices on how to proceed are welcome. They will help me do this faster.

Best Regards.
-Charles
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to make PhocaPDF render a new content type

Post by Jan »

Hi, see content plugin, the plugin takes all data and will add some parameters, then it gives the data into the Phocapdf document type, where the data will be rendered

Jan
If you find Phoca extensions useful, please support the project
Charles
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 May 2009, 09:09

Re: How to make PhocaPDF render a new content type

Post by Charles »

Hello Jan,
Thank you for your response. I had not realized.
Jan wrote:Hi, see content plugin, the plugin takes all data and will add some parameters, then it gives the data into the Phocapdf document type, where the data will be rendered

Jan
I'm not sure I have understood.
Do you mean the joomla /plugins/contents files or PhocaPDF plugins interface?
Is that a setting or a coding purpose?

Despite that I am a developer I'm not a joomla expert .
In advance Thanks.
-Charles
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to make PhocaPDF render a new content type

Post by Jan »

No so easy :-( (if you don't know the Joomla! framework well and of course my programming steps :-( )

:(

For every component there needs to be done phoca pdf plugin, this should be installed in plugin manager (joomla! plugin manager) and the component Phoca PDF needs to be changed too :-(

How it works:

You will create some link to phocapdf document in your selected component. This link links to phocapdf document. In phocapdf document there will be called data from plugin (you need to create new Phoca PDF plugin - Phoca PDF Your Component Plugin). Phocapdf document calls the plugin because of parameters, they are added, settings are set and the output goes back to phocapdf document where the output will be rendered.

jan
If you find Phoca extensions useful, please support the project
Charles
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 May 2009, 09:09

Re: How to make PhocaPDF render a new content type

Post by Charles »

Hello Jan,

You're right. I did some research on it and it's not so easy. :lol:
In addition the resources' code are encrypted and are not going to be helpfull.

I just have to return to my java stuffs.
One more time, Thanks.
-Charles
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to make PhocaPDF render a new content type

Post by Jan »

:(

Piti, in case you will create an plugin, I can then do changes in component, so it will be ready for such plugin :-(
If you find Phoca extensions useful, please support the project
Charles
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 May 2009, 09:09

Re: How to make PhocaPDF render a new content type

Post by Charles »

Hello Jan,
Piti, in case you will create an plugin, I can then do changes in component, so it will be ready for such plugin :-(
It's all right, I'm going to give it a try.
Before beginning I wanted to look at the Phoca Restaurant Plugin. Just in order to get an idea on how you did it since it is a plg for a new component (Restau) to use PhocaPDF. But it seems to be your commercial version.
So I'll try my way and let you know. Probably during the week end.

Keeping in touch.
-Charles
PS: PhocaPDF seems to be the best offer to get a good PDF renderer in Joomla.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to make PhocaPDF render a new content type

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Charles
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 May 2009, 09:09

Re: How to make PhocaPDF render a new content type

Post by Charles »

Hello Jan,

I created a working plugin. :) But the PDF output wasn't as expected. That wasn't formatted according to the template.
As a result of my request, I received the source code of the Joomsuite view.pdf.php (was encrypted).
The problem was there: the code does not use the Joomsuite Content Specific Template.
The developers told me they had to simplify the output (plain text) to avoid template rendering errors.

From the Joomsuite Team I know that:
- the next Joomsuite Resource version is going to be "open source GPL".
- there are many changes and the actual code will not be compatible with the upcoming one.

So, I'm waiting, waiting. The actual sources are ioncubed

I'll let you know.
Thanks and Regards.
-Charles
Post Reply