diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-17 15:42:44 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-17 15:42:44 -0400 |
commit | a5f0fc4931ab3635aac6bea600a68c8bb05156fc (patch) | |
tree | deac8d57af4822c65ae51530474c27f2d14ba380 /doc/todo/multiple_template_directories.mdwn | |
parent | 5e515605749684f5867857885043b4e25378a374 (diff) | |
parent | f864b74859d8b0197f59d7dfe7d45063dc887cd1 (diff) | |
download | ikiwiki-a5f0fc4931ab3635aac6bea600a68c8bb05156fc.tar ikiwiki-a5f0fc4931ab3635aac6bea600a68c8bb05156fc.tar.gz |
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Diffstat (limited to 'doc/todo/multiple_template_directories.mdwn')
-rw-r--r-- | doc/todo/multiple_template_directories.mdwn | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/todo/multiple_template_directories.mdwn b/doc/todo/multiple_template_directories.mdwn index 6d1632b4c..0f8f5c880 100644 --- a/doc/todo/multiple_template_directories.mdwn +++ b/doc/todo/multiple_template_directories.mdwn @@ -13,3 +13,35 @@ ought to do the trick. > considered [[done]]. I have a use case for this, a site composed of blogs and wikis, templates divided in three categories : common, blog and wiki. The only solution I found is maintaining hard links, being able to have multiple template dirs would obviously be better. -- Changaco + +> [[plugins/underlay]] used to allow adding extra templatedirs, but Joey +> removed that functionality when he made templates search the wiki's +> own `templates` directory. +> +> You can get a 3-level hierarchy like this: +> +> * instance-specific overrides: $srcdir/templates +> * common to the entire site: a directory that is the value of all +> instances' `templatedir` parameters +> * common to every ikiwiki in the world: /usr/share/ikiwiki/templates +> (implicitly searched) +> +> (by "instance" I mean an instance of ikiwiki - a .setup file, basically.) +> +> For a more complex hierarchy you'd need the old [[plugins/underlay]] +> functionality, i.e. you'd need to (ask Joey to) revert the patch that +> removed it. For instance, if anyone has a hierarchy like this, then +> they need the old functionality back in order to split the template +> search path for the things marked `(???)`: +> +> every ikiwiki in the world (/usr/share/ikiwiki/templates) +> \--- your site (???) +> \--- your blogs (???) +> \--- travel blog ($srcdir/templates) +> \--- code blog ($srcdir/templates) +> \--- your wikis (???) +> \--- travel wiki ($srcdir/templates) +> \--- code wiki ($srcdir/templates) +> +> This looks pretty hypothetical to me, though... +> --[[smcv]] |