Skip to content

Kirby 3.9.8

(file: …)

Creates a download link for any file

Attributes

class
download
rel
target
text
title

Examples and options

(file: companysecrets.pdf)
(file: companysecrets.pdf text: Download our company secrets)
(file: some/other/page/companysecrets.pdf text: Download our company secrets)
(file: http://example.com/companysecrets.pdf text: Download their company secrets)
(file: companysecrets.pdf title: Download our company secrets)
(file: cv.pdf text: My CV rel: me)
(file: companysecrets.pdf target: _blank)
(file: companysecrets.pdf class: download)

To avoid direct downloads you can set the download option to false:

(file: companysecrets.pdf download: false)