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

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

par Tim Hunt,
Nombre de réponses : 0
Avatar Core developers Avatar Documentation writers Avatar Particularly helpful Moodlers Avatar Peer reviewers Avatar 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>