aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmcv <smcv@web>2015-02-18 19:38:26 -0400
committeradmin <admin@branchable.com>2015-02-18 19:38:26 -0400
commitf04611a6d0e4738810dfa5af63cb06a33b45a4f5 (patch)
tree9a53c02b90208083c48c0d70399b3c7bbaad9062
parent1295cefab501b90a02ea348585e00562602458cf (diff)
downloadikiwiki-f04611a6d0e4738810dfa5af63cb06a33b45a4f5.tar
ikiwiki-f04611a6d0e4738810dfa5af63cb06a33b45a4f5.tar.gz
already fixed in newer ikiwiki
-rw-r--r--doc/bugs/trailitems_fails_inside_template.mdwn25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/bugs/trailitems_fails_inside_template.mdwn b/doc/bugs/trailitems_fails_inside_template.mdwn
index 477745793..bf401a7b2 100644
--- a/doc/bugs/trailitems_fails_inside_template.mdwn
+++ b/doc/bugs/trailitems_fails_inside_template.mdwn
@@ -26,3 +26,28 @@ My ikiwiki version: 3.20130904
Huge thanks in advance!
--[[fr33domlover]]
+
+> These templates have traditionally had a problem: they need to be
+> simultaneously a valid page in their own right, and a valid page after
+> template substitutions.
+>
+> In newer ikiwiki versions, the [[ikiwiki/directive/templatebody]]
+> directive [[solves this|done]] ... but your ikiwiki is nearly a year
+> and a half old, so you don't have recent bugfixes.
+>
+> You might be able to get somewhere by abusing the two intersecting
+> markup languages, something like this:
+>
+> <TMPL_IF FALSE>
+> \[[!if test="included() and !included()" then="""
+> </TMPL_IF>
+> ... real content here: inline, trailitems etc. ...
+> ... just don't use a triple quote mark ...
+> <TMPL_IF FALSE>
+> """]]
+> </TMPL_IF>
+>
+> Alternatively, if you have direct commit access and don't need
+> to be able to perform web-based edits on your template, I think
+> renaming your template from `foo.mdwn` to `foo.tmpl` would bypass
+> this while still working as a template. --[[smcv]]