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.
Hi Metzlerd, i need to know how can i change the name of download report, when the user press XLS, DOC or PDF links.
It's possible?
Thank you so much !
Comments
Comment #2
metzlerd CreditAttribution: metzlerd commentedNot currenlty without custom code. It is in my features list, but not developed at this time, sorry.
Comment #3
jpfrancesconiNo problem Metz, your module is so great !
Can you give me any tips how can i do it by myself?
I guess, if i create a module and make a hook function, what do you think about?
Thanks you a lot !!!
Comment #4
metzlerd CreditAttribution: metzlerd commentedIf you are familiar with custom module development, create your menu callback function. You can then get fornena to return you the text of the document by executing....
You would have to set the document headers correctly for the filename to be changed. Note that you'd also need to set the correct mime type headers and finally print the contents of the $pdf variable after setting the appropriate headers.