Can I put the pdf icon in a module position?

Phoca PDF - creating PDF documents in Joomla! CMS
oorzaak
Phoca Member
Phoca Member
Posts: 47
Joined: 11 Dec 2008, 00:37

Can I put the pdf icon in a module position?

Post by oorzaak »

Hi,

I have Phoca Pdf running on a site and it's working great. However the customer asked me if it is possible to display the pdf link/icon in a module position, along with a few social media buttons on the site, rather than in its current position (article icons position, near the article title).

Is this possible or is the link/icon integrated with the content component in such a way that it cannot be placed within a module position?


Kind regards,
Frits
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can I put the pdf icon in a module position?

Post by Jan »

Hi, there are more possible ways but maybe all too complicated - you can somehow move the icon with help of css to module position - or e.g. write own module which somehow get the right number of displayed article and will render right link for the PDF.

Jan
If you find Phoca extensions useful, please support the project
oorzaak
Phoca Member
Phoca Member
Posts: 47
Joined: 11 Dec 2008, 00:37

Re: Can I put the pdf icon in a module position?

Post by oorzaak »

Hi Jan, thanks for replying so quickly!

I'd rather put my cards on the module solution. I checked the hmtl code that is rendered by the current button. If I understand you AND the code correctly, then the module should somehow create a link like this one (on a test domain of my site) on the corresponding page:
Is this correct? If so, then it should not be too hard. I have NoNumber's Sourcerer running on this site already and I know a bit of the Joomla framework.

Anyway I'd rather do it this way than moving the icon around with css, which in my opinion is far less reliable (cross platform) than a healthy bit of php.


Kind regards, Frits
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can I put the pdf icon in a module position?

Post by Jan »

Hi, yes, if you are able to get such link in module, then this is the best solution - yes, the only function in article is the rendering the link - so if you have right link, you can paste it everywhere you need.

Jan
If you find Phoca extensions useful, please support the project
oorzaak
Phoca Member
Phoca Member
Posts: 47
Joined: 11 Dec 2008, 00:37

Re: Can I put the pdf icon in a module position?

Post by oorzaak »

Got it running now!

Thanks,

Frits
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can I put the pdf icon in a module position?

Post by Jan »

Great to hear it.

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