0

I have a view with information from a specific database table and I want users to be able to generate a PDF with the results from one row, which would contain all the information from the row. So far, I've only been able to generate a PDF of an entire view instead of one result. I'm not sure how to "tell" the PDF which view result to generate as a PDF.

Note: This is a different way of asking a question I previously posted, which I think was too confusing at this point.

1
+50

It is just an idea. You need to create a one more view with same field. But you use views contextual filters and also use view pdf in this view . create a link for print with where you pass argument for this view . Print this link in your first view using view php.

You can also do this custom . create a custom menu item .Pass argument (id,nid) load content programmatically and add pdf download option.

Thank you

  • Yes, this is what I want to do. How do I pass the argument programmatically and which contextual filters do I use? That's the part I'm having a hard time figuring out how to do. – Christia Sep 2 '17 at 7:50
  • 1
    I just create a dummy view which is working for node content type basic page please download view from here and import in your drupal setup dropbox.com/s/6ksugn2j8p5vkg7/view-export.txt?dl=0 – Pankaj Yogi Sep 2 '17 at 9:47
  • Thank you. What module did you use to get the Global PHP field? – Christia Sep 6 '17 at 12:01
  • drupal.org/project/views_php Install this module – Pankaj Yogi Sep 6 '17 at 12:03
  • I did not getting you point. – Pankaj Yogi Sep 6 '17 at 13:21

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.