pdf will not work within a modal window

Phoca PDF - creating PDF documents in Joomla! CMS
mairead
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 09 Jun 2010, 07:34

pdf will not work within a modal window

Post by mairead »

I have just installed your plugin into my joomla site version 1.5.1. which I think is great and all my pdf documents look very professional.

I have just got one issue. I am able to create a pdf file of an article page on the main site but whenever I click on the pdf link in the modal window it generates the following error message;
'500 - View not found [name, type, prefix]: article,phocapdfml,contentView'

I noticed on the modal settings there is an option which says Email Link Identifiers - format=pdf,/pdf.html

Do I need to change this to something else.

Any help would be great thank you.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: pdf will not work within a modal window

Post by Jan »

Seems like your url creating is not able to accept the pdf link, try to test it without SEF or try to change the URL creating method in Phoca PDF settings (for content plugin)

Jan
If you find Phoca extensions useful, please support the project
mairead
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 09 Jun 2010, 07:34

Re: pdf will not work within a modal window

Post by mairead »

1. When I turn the SEF off at the site configuration it uses the joomla pdf converter and not phocapdf and I am able to pdf both webpages and modal pages.

2. I then turned this back on and went into the phocapdf plugins section and tried to set the 'SEF enabled' to 'no'. This just brings up another html modal screen with the same page.

3. I set the 'SEF enabled' in the phocapdf plugins section to 'yes(.pdf?) and yes the modal screen was able to be made into a pdf but the main pages on the site were not, instead they displayed another html popup with the same content that is shown on the screen.

4. I set the 'SEF enabled' in the phocapdf plugins section to 'yes(.pdf) and now I am able to made a pdf of the main pages in the site but not for any of the modal screens. Just brings up the error 500

I hope this makes sense. I know it probably something stupid. I'm a newbie so just learning :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: pdf will not work within a modal window

Post by Jan »

Hi, in 1.5 there is a limitation, because extension cannot use own link (should be changed in 1.6) so for now the Phoca PDF needs to have system plugin which tries to find pdf link and tries to change it to some Phoca PDF link - this should work for articles and core SEF (with or wihout suffix) but maybe if there is some difficult seo link, it can have problems, so the code needs to be customized, so the right link will be created :-(

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