I'm trying to add PDF/Print/E-mail icon to my component. The problem is I don't know how.. I search google, found nice articles and discussions, but still can't figure out - What, Where and How to integrate that this functionality would work withing my custom component.

If anyone has any ideas, where to start from, which files I need to include and where, please tell me :)

I'd really appreciate :)

maybe there's some articles or book that in details explains the process (step by step)

  • This thread on Joomla forum might help. P.S. I'm not sure this question is in line with the "What kind of questions can I ask here" FAQ.
    – Paolo
    Jul 21 '11 at 12:33
  • I have seen this thread.. but it didn't help... I think there has to be somewhere an article that explains in details, or maybe someone know here :)
    – Mikey
    Jul 21 '11 at 12:50
  • In articles by default these icons are present unless you deselect then in Article attributes in the admin panel.
    – AgA
    Jul 21 '11 at 19:41
  • it's not an article, it's a custom component :)
    – Mikey
    Jul 21 '11 at 19:50

So, I solved this problem.

It might not be the best solution but for a fast solution it works fine.

PDF - generate the link in view - tmpl - default.php make link <a href="">PDF</a> index.php?option="smth"&view="smth"..... and at the end add &format=pdf in your view folder copy view.html.php and rename it to view.pdf.php - and your set to go!

Print - the very same thing as PDF at the end of link put &format=print and create view.print.php

Email - you can directly address the com_mailto component - here's the link example

index.php?option=com_mailto&tmpl=component&link="your page link you want to be sent"

So this is your fastest solution of the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.