2007-12-31: Minor release with feature enhancements. More...
2007-09-08: Small bug fix release. More...
2007-06-29: Some bug fixes and one small feature enhancement. More...
| Plugin name: | Tag/Download (Tag/Default) |
|---|---|
| Author: | Thomas Leitner <t_leitner@gmx.at> |
| Summary: | Provides a nice download link and, optional, image |
| Dependencies: | Core/ResourceManager |
| Parameters: | alwaysShowDownloadIcon: false icon: nil mappingFile: nil url (=default mandatory parameter): nil |
| Handled tags: | download |
This tag is used to provide a nice download link. The download link includes the following parts:
Caveat: You should link to the webgen-css resource in your template as this plugin defines some
CSS styles!
You can specify additional type-to-icon mappings using the parameter mappingFile which needs to point to a file with the mappings. The format for the file is YAML and following is an example:
file-mapping:
/images/mytype.jpg: [.my, .mytype]
/images/documents.jpg: [.wpd, .doc, .sxw, .odt, .rtf]
resource-mapping:
webgen-icons-text: [.page, .template]
The two possible top level keys are file-mapping and resource-mapping. The first specifies which
image file and the second which resource should be used for the specified extensions.
| Usage | Output |
|---|---|
| {download: {url: /images/thumb_example.jpg}} | |
| {download: {url: /images/thumb_example.jpg, alwaysShowDownloadIcon: true}} | |
| {download: download.page} |