Page 1 of 1
newbie sorry re phocapdf rewrite
Posted: 18 Oct 2010, 23:30
by buildbuyer
i think i'm missing something obvious but is a rewrite copy/paste is required to get pdf icon to run through phoca pdf? hate to be the new guy but i've been looking at documentation forums etc for 45 minutes, is there beginner tutorial showing us how to do rewrite somewhere, I feel i'm missing some documentation maybe? i tried a rewrite in .htaccess pdf to phocapdf from something i found in forum but it's not working
just to clarify, it does work when i use the ?format=phocapdf, but the pdf icon even with rewrite is still showing default pdf view.
this is rewrite rule i found in forums:
RewriteRule (.*)\/pdf.html$ $1.html?format=phocapdf [R=301,L]
thanks for your time,
best
john
Re: newbie sorry re phocapdf rewrite
Posted: 19 Oct 2010, 21:34
by buildbuyer
friendly bump, is there a link to a beginner's tutorial anywhere? Trying to get the pdf icon to convert to phocapdf, is that supposed to happen automatically when the plugin is enabled? or is there a redirect required?
Re: newbie sorry re phocapdf rewrite
Posted: 20 Oct 2010, 15:53
by buildbuyer
friendly bump - can we make a donation for a wee bit of help, need to use this component on a production site right now.
thanks,
best,
john
Re: newbie sorry re phocapdf rewrite
Posted: 21 Oct 2010, 16:21
by buildbuyer
friendly bump - still not working regardless of configuration - donation for help offer going once...
Re: newbie sorry re phocapdf rewrite
Posted: 26 Oct 2010, 00:38
by buildbuyer
friendly bump - trying i think every configuration variable possible and not working - donation for set up? Talk to me willis.
Re: newbie sorry re phocapdf rewrite
Posted: 26 Oct 2010, 12:35
by Jan
Hi, I don't have any experiences with rewriting the .htaccess so cannot give any advices, the format=phocapdf is included in the url like e.g. limitstart etc.
see:
https://www.phoca.cz/demo/phocapdf-demo
For other solution you need to use some SEF external method but some which will support Phoca PDF
Jan
Re: newbie sorry re phocapdf rewrite
Posted: 27 Oct 2010, 17:04
by buildbuyer
Still no luck, trying different extension rewrites - we will pay a couple hours time for assistance getting this running -
Re: newbie sorry re phocapdf rewrite
Posted: 29 Oct 2010, 22:49
by ocular
buildbuyer wrote:friendly bump, is there a link to a beginner's tutorial anywhere? Trying to get the pdf icon to convert to phocapdf, is that supposed to happen automatically when the plugin is enabled? or is there a redirect required?
Yes, PhacoPDF component and plug in when installed will change the pdf icon url link "format=pdf" to "format=phocapdf" automatically. Not sure why you are concentrating on rewrite, are you specifically trying to use Joomla Core SEF? ( I don't think you are because you haven't mentioned it) If this is not happening then something is amiss. The plugin should automatically search for format=pdf and replace with format=phocapdf
However here is a way of hard coding format=pdf to format=phocapdf -involves edit to joomla core file, nothing to do with .htaccess rewrite.
Edit file: //components/com_content/helpers/icon.php
line 49 $url .= '&id='.$article->slug.'&format=pdf';
change pdf to phocapdf
hope this helps