Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The action "Save PDF to file" doesn't work with included views. When I look the view at the browser, it's working fine. But when I try to save the pdf to a file, the included view (PDF View) isn't generated. I try to create a PDF for invoices and need the included view for the order items.
Comments
Comment #1
designmonger CreditAttribution: designmonger commentedI have been experiencing a similar problem. I have setup rules to save the PDF to the server using the specified view, the PDF is generated using the specified template but contains none of the fields. I am using Global Views field to include another view within the PDF When going directly to pdf link using the views display path it works beautifully.
About to test it on my local server to see if it is a permissions problem. Also going to remove the global views field to see if that is the issue.
Comment #2
designmonger CreditAttribution: designmonger commentedTesting on Localhost resulted in:
Views Global View field removed - no change.
I removed the views argument [node:nid] from the save pdf rule - resulted in blank pdf as expected.
placed [node:nid] argument back in and I am recieving only 2 fields in the PDF.
Note I am also using the Relationships filter for some field collections fields within the view.
Is it possible that the Save to PDF rule is picking up the relationship? If so how would I reference this in the Save to PDF rule?
Comment #3
Simon Georges CreditAttribution: Simon Georges commentedNo patch => setting the correct status.
Comment #4
killua99 CreditAttribution: killua99 commentedDear fellow Drupal enthusiasts,
I have set this issue to "Postponed (Maintainer needs more information)".
If not already done please add an issue summary and steps how to reproduce the problem.
And please read again, "Making an issue report".
Help about how to do this can be found on IRC and in the user groups.
After there is new information, please re-open the issue by changing the status to active.
--
This issue was edited with the help of Issue Helper
Comment #5
candelas CreditAttribution: candelas commentedi have 2 included views in the last dev and they work on a saved pdf by rules.
Comment #6
killua99 CreditAttribution: killua99 commentedPlease open a new issue if you still have this problem.