Building a Plugin for ChronoForms
Posted: 09 Jun 2009, 06:59
Hi Jan,
I've been looking at building a plugin to make PhocaPDF available for ChronoForms form output. I've started tracking through the code and it's not completely obvious what needs to be done.
I can see that the Content Plugin re-writes the pdf link from an article page and adds &format=phocapdf to the url.
I can see that there are a couple of new events in the plugin and that you have a listener inside the switch in files.phocapdf/phocapdf.php - I assume that I'll need to add a new case here.
What I am not clear about is if I send html output from chronoforms with format=phocapdf is that enough or is there some other pre-processing of the output that needs to be done?
Bob
I've been looking at building a plugin to make PhocaPDF available for ChronoForms form output. I've started tracking through the code and it's not completely obvious what needs to be done.
I can see that the Content Plugin re-writes the pdf link from an article page and adds &format=phocapdf to the url.
I can see that there are a couple of new events in the plugin and that you have a listener inside the switch in files.phocapdf/phocapdf.php - I assume that I'll need to add a new case here.
What I am not clear about is if I send html output from chronoforms with format=phocapdf is that enough or is there some other pre-processing of the output that needs to be done?
Bob