Hi Everyone,
Currently, I’m manually editing the HTML on the page when we want to make a PDF file available. What I would like is to be able to have a page that has uses ditto call to show all the published files beneath it. This would give me much better control and convenience and allow me to get extra sleep when a file needs to be made available at 6:00 AM, for example.
My thought is to create a template variable called "fileattachment", with input type as "File". Then create a new page that will be "application/PDF" and Content-Disposition of "Attachment".
Then when someone clicks on the page link, they will get the associated PDF file.
I’ve tried the steps above, but when I click the link, I get a 0-byte pdf, so close yet so far.
Anyone know what I’m doing wrong or better yet, how I can make this work?
Thanks.