Newbie to html_writer - how to add the keyword *download*

Re: Newbie to html_writer - how to add the keyword *download*

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

In this case it is probably best to given an attribute value, since that will then be used as a suggested filename for the file being saved. E.g.

<a href="the urldownload="suggested-filename.csv">click me</a>