diff options
author | intrigeri <intrigeri@boum.org> | 2008-11-04 23:39:35 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-11-04 23:39:35 +0100 |
commit | 40978343575b1cba041c087518e5766d6ca5db82 (patch) | |
tree | c27774e2cfadf0fa3976f710941f59fd66ecaae7 /doc/forum/wiki_name_in_page_titles.mdwn | |
parent | 265e857f6060b899ed6a08b5b28fe5190f056c0c (diff) | |
parent | 4c6c00ccdff71fbb8973de7d256fc987d7a2a7e0 (diff) |
Merge branch 'prv/po' into pub/po
Diffstat (limited to 'doc/forum/wiki_name_in_page_titles.mdwn')
-rw-r--r-- | doc/forum/wiki_name_in_page_titles.mdwn | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/forum/wiki_name_in_page_titles.mdwn b/doc/forum/wiki_name_in_page_titles.mdwn index 385e7a3f2..01ff8d817 100644 --- a/doc/forum/wiki_name_in_page_titles.mdwn +++ b/doc/forum/wiki_name_in_page_titles.mdwn @@ -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]] + +>> 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 |