I finally got the Print module and Dompdf set up and working. Thank you for a great module!

Now we have a challenge that has me stumped. We offer some files (mostly HTML) through an IFRAME link using Colorbox. I'm hoping to add a Print and/or PDF link to the Colorbox frame so users can print or download the contents of the Colorbox.

But I don't have a clue where to begin. Suggestions?

Comments

maduko created an issue.

mboc’s picture

suscribe!

trenttati’s picture

I have used the following method to achieve this:

  1. Create a Block with Views, use a Content ID contextual filter and display a NID field with Rewriting to display the Print/PDF URL and use the [NID] token to generate the correct link.
  2. Using Display Suite, create a block field, using your new block, and have it target your content type and Colorbox view mode.
  3. Make sure your new DS block field is set to display on your content type's Colorbox view mode.

Note that you need to be using Display Suite for my method to work. The same logic can be applied to Panels or other node layout methods.

terminator727’s picture

how can i rewrite to display the print module? "[print]" or?

trenttati’s picture

The path to the print module version of a node is: /print/[nid]

In case this changes after this comment, you can find the path by looking at an existing node's print link.