summaryrefslogtreecommitdiffstats
path: root/Arguments.md
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2024-12-01 18:34:21 +0100
committerThomas Lange <code@nerdmind.de>2024-12-01 18:34:21 +0100
commit5db82adf4c93dfa14d0d4f5d3f67af18d123c4f1 (patch)
tree49197cc24b844f91f697aef1d6f2d8c8e6d49324 /Arguments.md
parentd5e6e5d81d2ca2758b9bec3e819640831ace65ff (diff)
downloadwiki-5db82adf4c93dfa14d0d4f5d3f67af18d123c4f1.tar.gz
wiki-5db82adf4c93dfa14d0d4f5d3f67af18d123c4f1.tar.xz
wiki-5db82adf4c93dfa14d0d4f5d3f67af18d123c4f1.zip
Update documentationHEADmaster
Diffstat (limited to 'Arguments.md')
-rw-r--r--Arguments.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/Arguments.md b/Arguments.md
index 801adba..47bb93a 100644
--- a/Arguments.md
+++ b/Arguments.md
@@ -1,6 +1,6 @@
This document explains how to use the optional field for arguments in the content editor. This field can contain a list of arguments as key or key/value pairs formatted as follows:
-`FOO=value|BAR=value` (or `FOO=value|BAR`; `BAR` will be automatically set to `TRUE`).
+`FOO=value|BAR=value` (or `FOO=value|BAR`; `BAR` will be automatically set to `true`).
## How to access arguments in a template
Lets assume that your argument string for a specific post is something like this:
@@ -23,7 +23,7 @@ You can now access the entire (unparsed) argument string in templates with `$POS
}
## How this arguments can be used to do something special
-If you are a template developer, you can check within your templates if the argument `HIGHLIGHT` is present (arguments with no explicit value will be automatically set to boolean `TRUE`). If set, you can highlight this post differently. Just check if this value is set and add an extra CSS class to your HTML markup which then will highlight your post.
+If you are a template developer, you can check within your templates if the argument `HIGHLIGHT` is present (arguments with no explicit value will be automatically set to boolean `true`). If set, you can highlight this post differently. Just check if this value is set and add an extra CSS class to your HTML markup which then will highlight your post.
You can even add a preview image functionality. Lets assume you want to show a preview image for each post in the list? There is no core functionality to do this, but with the argument functionality you can do this very simple:
@@ -35,4 +35,4 @@ You can even add a preview image functionality. Lets assume you want to show a p
Each argument key (the part before the `=`) must only contain letters from `A-Z`, `a-z`, `0-9` and underscores (`_`)!
## Conclusion
-The use cases of these arguments are practically unlimited. Please note that the templates of the `default` theme are not using any arguments provided in the argument field. It is up **to you** whether you implement this in your own template to do something special or not! \ No newline at end of file
+The use cases of these arguments are practically unlimited. Please note that the templates of the `default` theme are not using any arguments provided in the argument field. It is up **to you** whether you implement this in your own template to do something special or not!