1

I have Printer module installed on Drupal 7. Let's say I have a view that lists all the articles in table format. I would like to have the PDF and ePub url link next to each article as a field. Is it possible?

2

Yes, add a global text field and under Rewrite Results select output this field as link and give the path eg. for PDF it should be printpdf/[nid].

similarly you can create one more field for EPUB using printepub/[nid].

Note [nid] is a replacement pattern, you should add nid before these fields and exclude it from display.

  • I cant upvote this whole thread enough, haha. – tenken Jun 17 '14 at 16:08
  • Ty @wolverine. The link go to page "Page not found". I believe I didn't enable one of the functions. What am i missing? I'm using wkhtmltopdf from github.com/wkhtmltopdf/wkhtmltopdf and PHPePub from github.com/Grandt/PHPePub. – CocoSkin Jun 17 '14 at 16:22
  • the url printpdf/[nid] on output this field as link is pointing to /printepub/%5Bnid%5D. am i using the right code? – CocoSkin Jun 17 '14 at 16:44
  • 1
    You have to add Content:nid field before the global fields and exclude it from display if you want. But it should come before the global fields. – wolverine Jun 17 '14 at 16:48
  • ty @wolverine :) – CocoSkin Jun 17 '14 at 17:18

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.