-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOC] added plugin_info for getkirby-plugins.com and updated readme
- Loading branch information
1 parent
591d9e0
commit abe4862
Showing
2 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## Introduction | ||
This kirbytag returns a beatiful download-link for a specific file in your site´s content. It generates a link with a customizable text and dispays the filesize. | ||
|
||
That´s nothing special, but come some features for lazy people: | ||
You can choose your file, by the file categorization kirby uses (document, image, etc.) and the select by first or last. If you have a file, like a regularly updating flyer, you can keep going on with individual file names, but don´t have to specify the name in the tag eveny time you change your file! Isn´t this awesome? | ||
|
||
|
||
#### installation | ||
store this file in | ||
|
||
site/tags/ | ||
|
||
#### usage | ||
Now you have a new kitbytext extension for download-links. | ||
The syntax is quite simple: | ||
|
||
(download: $keyword type: $filetype ext: $extension text: $someLinkText) | ||
|
||
First thing to replace is `$keyword`. You can choose from: | ||
|
||
- "first": selects the first file | ||
- "last": selects the last file | ||
- or you can type some filename | ||
|
||
Next we want to specify which files are affected. This is done with replacing `$filetype`. You can choose from the kirby file selectors: | ||
|
||
- "document" | ||
- "code" | ||
- "images" | ||
- "videos" | ||
|
||
To condense the selection further down, you can replace `$extension` and type a filename extension. | ||
|
||
With the `text` attribute (replace `$someLinkText`) you can set a custom text which is displayed instead of the filename. | ||
|
||
##### keep in mind: | ||
Of course the pattern above is only an example and not working by copying it. If some placeholder (the things with `$` at the beginning) is not replaced, you have to delete the keyword infront of it too. | ||
|
||
##### examples: | ||
|
||
(download: first type: document) | ||
(download: flyer.pdf text: our beautiful products) | ||
|
||
|
||
## contribution | ||
Feel free to fork this repository an make it better. | ||
Perhaps we can implement the viewport width feature in some way. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters