Search

I have a semi-urgent need to allow for csv downloading. Is there a delegate to allow for editing the Page output header and adding a '.csv' extension, or something to that effect?

I don't believe there are any front-end delegates but I think Alistair is adding some in the next revision.

Maybe this event can help (if you change it a little bit):

http://symphony21.com/forum/discussions/329/1/#Comment_2221

(This could at least take care for the HTTP header.)

Nice!

Now, does anyone know if/how I could get access to the Page data this event is attached to, so I could name the download after the page itself, and maybe determine the file extension by pagetype value...

edit: for anyone else who needs it, the header is:

"Content-Disposition: attachment; filename=download.csv"

this takes any filename.extension, and gives a prompt to download in the browser.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details