|
download_tag.wmk - quick links to files for download |
< use plugin="download_tag" />
< download file="filename.dat" [text="template"] />
This WebMake Perl library provides a quick shortcut to make links to files for download.
The attributes supported are as follows:
Filenames should be specified relative to one of the following:
FileSearchPath WebMake optionctime() format, e.g. Thu Mar 01 20:54:34
2001.
template can be, and should often be, a $ {content_reference}. The default
template is:
< a href="$ {download.href}" $ {download.tag_attrs}>$ {download.name}
($ {download.size_in_k}k)< /a>
Note that this means that any unrecognised attributes of the download tag itself will become attributes of the A tag.
The default template can be overridden by setting the template content item
download.template.
FileSearchPath - WebMake option
|
download_tag.wmk - quick links to files for download |