Closed (outdated)
Project:
Views PDF
Version:
7.x-1.7
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2017 at 10:25 UTC
Updated:
26 Jan 2023 at 09:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
matt bI notice this module uses a variable 'views_pdf_template_stream' so I'm trying variations of
drush vset views_pdf_template_stream s3://public/views_pdf_templatesNo success so far....!
Comment #3
matt bso in the end I've just hacked the getAvailableTemplates and getTemplatePath functions in views_pdf_template.pdf - it's dirty and not nice, so my request is - can this module be made compatible with the S3FS module please.
Comment #4
vegansupreme commentedSince you've got a working solution, can you submit a patch as a start?
Comment #5
matt bNo, my hack is to insert the template manually into the templates list produced by getAvailableTemplates and to add an if statement to getTemplatePath to return the path. I've had to load the template to the web server (not S3) and use the full path. It's a real dirty have that has enabled me to see if the modules functionality meets my use case, but it's specific to my needs, and not really for production use!
Comment #6
shadab ahmad commentedI am facing the same problem and looking for any possible solution so that we can configure S3 file path with views_pdf.
Comment #7
shadab ahmad commentedI have fixed this issue. Please follow the steps below:
1. Go to views_pdf/views_pdf_template.php
2. Replace function getTemplatePath() with the function below:
Comment #8
matt bPlease provide a patch
Comment #9
shadab ahmad commentedI have created patch for the same. I have tested on my localhost and it works. Please review and apply the same.
Comment #10
shadab ahmad commentedAny news on this patch being pushed? Thanks.
Comment #11
papagrandeI haven't tested the patch, but at first glance, the changes need to be run through the PHP code sniffer to match Drupal coding standards.
Comment #12
matt bI've tested the patch. The template files in the S3 bucket are not being listed, and now my public folder has some wierd permission issue where I cannot view it in IMCE, but I still can in S3.
Comment #13
killua99 commentedis this feature still relevant ? if yes, could you re-write this patch for Drupal 7.x-3-x ?
If not, I will close it
Comment #14
matt bI think it can be closed :-). I can't even remember why I needed this (it was clearly important at the time!)
Comment #15
matt b