How to customize PhocaPDF to work with non-article content

Phoca PDF - creating PDF documents in Joomla! CMS
reesey
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 06 Nov 2009, 18:56

How to customize PhocaPDF to work with non-article content

Post by reesey »

Is there a how to available that explains how to extend PhocaPDF to work with non-article content (such as custom components) similar to the plugin/extension you have created to integrate PhocaPDF with VirtueMart? I've tried reading through the various PhocaPDF files to figure this out on my own; however, all that did was re-emphasize the fact that my PHP skills are not close to what they need to be to do this. I have not looked at the VM code since I am not using VM on my site, but will try to look through it to see if there is anything in there to help. Any help would be greatly appreciated.

For completeness, when I added the code that had to be added to the article view files to the view files of the view files of the component, I get "Fatal error: Class 'ContentHelperRoute' not found in ../administrator/components/com_phocapdf/helpers/phocapdf.php on line 61" when I view the page. PhocaPDF version is 2.0.4 running on Joomla 1.7.3.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to customize PhocaPDF to work with non-article conte

Post by Jan »

Hi, in fact:
1) there must be done a plugin for this
2) Maybe I then need to add support to component for this plugin, if it cannot work with "default" settings :-(

Jan
If you find Phoca extensions useful, please support the project
reesey
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 06 Nov 2009, 18:56

Re: How to customize PhocaPDF to work with non-article conte

Post by reesey »

The component I'm trying to use this with is AkeebaSubs (https://www.akeebabackup.com/software/a ... tions.html) which I have customized heavily to suit my needs (hence the reason why i did not mention the component earlier). I am about to take a few days off from my regular job for the holidays; so, I maybe I can find some time to review the PhocaPDF files further and do additional debugging to see where the problem lies. Will post any additional findings that I have here.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to customize PhocaPDF to work with non-article conte

Post by Jan »

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