Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

One click file download from admin/assets


Go to End


1076 Views

Avatar
zerrvox

1 Post

10 October 2008 at 9:56am

Hey,

I've been trying to make it possible to download a file from the assets section without first opening the file details window. I have successfully added a new link in the list (AssertTableField.ss) which point directly at the file and works in Firefox. The problem is that in IE the detail window/iframe still opens. I then tried to make a Director::redirect of the frame in AssertTableField.php to the file hoping that would promt a download but I keep getting the 404 page instead.

Any idea how to circumvent the ajax detail window?

Any help is much appreciated.