Customising a PDF file download filename?

Created on 16 January 2025, 3 months ago

Problem/Motivation

I have created a view which picks up a contextual ID on a path: examination-question/pdf/% pops up a downloadable PDF version very nicely.

The problem is that the file is always called document.pdf

Is there a way that I could customise that to be the title of the node (say) or better still make up my own by using tokens within my view.

I just can't seem to work out where I can even attempt to change that default filename.

Thanks all

💬 Support request
Status

Active

Version

2.15

Component

Miscellaneous

Created by

🇬🇧United Kingdom SirClickALot Somerset

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024