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
generate a custom link to pdf
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: generate a custom link to pdf
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
Jan
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 30
- Joined: 02 Jul 2012, 18:52
Re: generate a custom link to pdf
ok can you send me an exemple for b solution ?
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: generate a custom link to pdf
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
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 30
- Joined: 02 Jul 2012, 18:52
Re: generate a custom link to pdf
ok thanks