generate a custom link to pdf

Phoca PDF - creating PDF documents in Joomla! CMS
micker
Phoca Member
Phoca Member
Posts: 30
Joined: 02 Jul 2012, 18:52

generate a custom link to pdf

Post by micker »

Hello i search in documentation but you only explain how to add pdf button via print button modification (that cool)
i need to create a single link in my override to display a simple <a href .. to pdf
how i can acheive this ?
regards
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: generate a custom link to pdf

Post by Jan »

Hi, here you can see the method which gets the button.

So there are two options:
a) changing directly the method to get only a link
b) or get the button and with PHP methods separate the link and make the a href :idea:

Jan
If you find Phoca extensions useful, please support the project
micker
Phoca Member
Phoca Member
Posts: 30
Joined: 02 Jul 2012, 18:52

Re: generate a custom link to pdf

Post by micker »

ok can you send me an exemple for b solution ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: generate a custom link to pdf

Post by Jan »

Hi, I didn't do such customization yes, so I don't have such example - for this you need to use some PHP function for replacing text, maybe some regex function :idea:

Jan
If you find Phoca extensions useful, please support the project
micker
Phoca Member
Phoca Member
Posts: 30
Joined: 02 Jul 2012, 18:52

Re: generate a custom link to pdf

Post by micker »

ok thanks
Post Reply