^do( PDF, filename, title )^
Type: Macro
Purpose: Adds a download button (uses Downloads Directory)
The PDF macro inserts a button to download a PDF file. When clicked, it downloads filename from the Uploads Directory that 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).replace("/$","))^/$1" role="button">^if($3)^<img style="max-height: 48px;" src="^root^img/$3" title="$2" alt="$2"> ^endIf^$2</a>
PDF sample
This is the markup that is rendered below
^do(PDF, "hughes_memo.pdf", "Howard Hughes Memo")^
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.
|
|
Howard Hughes Memo |
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.