]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Forum response
authorJason Blevins <jrblevin@sdf.lonestar.org>
Tue, 4 Nov 2008 16:05:55 +0000 (11:05 -0500)
committerJason Blevins <jrblevin@sdf.lonestar.org>
Tue, 4 Nov 2008 16:05:55 +0000 (11:05 -0500)
doc/forum/wiki_name_in_page_titles.mdwn

index 385e7a3f28280e759584fb4f767d454b9ba6860d..f22049aa8e84e49cf1b87f7fe8fb399eb1e7775a 100644 (file)
@@ -8,3 +8,19 @@ that provides a `IS_HOMEPAGE` template variable? --[[JasonBlevins]]
 > Hmm, one way to work around this is to put a meta title directive on the
 > index page. Then TITLE will be that, rather than WIKINAME, and your
 > template should work. --[[Joey]]
 > Hmm, one way to work around this is to put a meta title directive on the
 > index page. Then TITLE will be that, rather than WIKINAME, and your
 > template should work. --[[Joey]]
+
+>> I ended up writing a [path][] plugin since I had some other
+>> path-specific conditional things to include in my templates.
+>>
+>> So now I can do things like this:
+>>
+>>     <title>
+>>     <TMPL_VAR WIKINAME><TMPL_UNLESS IS_HOMEPAGE>: <TMPL_VAR TITLE></TMPL_UNLESS>
+>>     </title>
+>>
+>> But also more complicated path-specific conditionals like
+>> `IN_DIR_SUBDIR` to indicate subpages of `/dir/subdir/`.  I've got a
+>> few other small plugins brewing so I'll try to put up some contrib
+>> pages for them soon. --[[JasonBlevins]]
+
+[path][]: http://code.jblevins.org/ikiwiki/plugins.git/plain/path.pm