The Tree of Widsdom

智慧の樹

Download

^do( Download, title, filename, [img] )^

Type: Macro

Purpose: Adds a download button (uses Downloads Directory)

The Download macro inserts a button that displays title on the right, an optional img on the left, and when clicked downloads filename (inside the Downloads Directory you have specified in the Directories Dash).

Hover below to reveal BoxPress code

<p class="m-b-lg text-center"><a class="btn btn-primary btn-lg" href="^value($Text(dashDownloadDir))^/$2" role="button">^if($3)^<img style="max-height: 48px;" src="^root^img/$3"^endIf^ title="$1" alt="$1">  $1</a></p>

Download sample

This is the markup that is rendered below

^do(Download, "Download BoxPress", "BoxPress_161.zip", "BoxPressThemes/bp_512.png")^

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Download BoxPress  Download BoxPress

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.