]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/dynamic_rootpage.mdwn
web commit by buo: More comments on mercurial use.
[ikiwiki.git] / doc / todo / dynamic_rootpage.mdwn
1 I prefer to use a current year, month and day to archive my blog posts, for example
2 `post/2007/11/12/foo-bar-baz` path is better for me then `post/foo-bar-baz`.
3 Unfortunately it seems that `rootpage` parameter of inline plugin is very static.
4 Is it a chance to make it more dynamic? Now I have to use `svn mkdir` command
5 to create appropriate subdirectories by hand.
6
7 I think that you could add builtin functions or variables, for example `current_year()`
8 or `$CURRENT_YEAR` to usage inside `rootpage` parameter. Something like for Manoj's
9 calendar plugin. Then my `rootpage` parameter could be like
10 `rootpage="post/current_year()/current_month()/current_day()"`. Another good hints
11 are welcomed ;)
12
13 What's your opinion, Joey? I hope it's also useful for another ikiwiki lovers :)
14
15 --[[Paweł|ptecza]]
16
17 >> Hello Joey! Is it a taboo subject? ;) --[[PaweÅ‚|ptecza]]
18
19 >> No, but I don't know of a way to do it that feels flexible and right.. 
20 >> Using functions as in your example doesn't feel right somehow.
21 >> --[[Joey]]