aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://tincho.org/ <tincho@web>2013-10-02 00:49:00 -0400
committeradmin <admin@branchable.com>2013-10-02 00:49:00 -0400
commit59b9091c0b5d2d2a7d5f1a37f636fc4c2697171e (patch)
tree206363eb1aa7e0f7c31e794e5c95edd006abfaf1
parenta55bd3640bb7099cbc083c162bf2a37f299cb17b (diff)
downloadikiwiki-59b9091c0b5d2d2a7d5f1a37f636fc4c2697171e.tar
ikiwiki-59b9091c0b5d2d2a7d5f1a37f636fc4c2697171e.tar.gz
-rw-r--r--doc/forum/Template_variables.mdwn20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/forum/Template_variables.mdwn b/doc/forum/Template_variables.mdwn
new file mode 100644
index 000000000..341490dc3
--- /dev/null
+++ b/doc/forum/Template_variables.mdwn
@@ -0,0 +1,20 @@
+Hi,
+
+I am very confused with the template variables. I cannot find any documentation of which ones are available, where are they set, etc.
+
+I see that in the default templates, there are things like this (rssitem.tmpl):
+
+<TMPL_IF AUTHOR>
+ <title><TMPL_VAR AUTHOR ESCAPE=HTML>: <TMPL_VAR TITLE></title>
+ <dcterms:creator><TMPL_VAR AUTHOR ESCAPE=HTML></dcterms:creator>
+<TMPL_ELSE>
+ <title><TMPL_VAR TITLE></title>
+</TMPL_IF>
+
+But I don't get this in my RSS, and I don't know how to add those variables, except for mentions of some plugins that are not yet merged.
+
+I also see that the 'author' data is one of the fields that can be set with the meta directive, but I understand that meta is processed after the templates, so it cannot be the source; right?
+
+Any help appreciated!
+
+PS: what I am tring to do now is to add a proper author field to my feeds, but I also want to understand how to use the templating system.