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.
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
13 What's your opinion, Joey? I hope it's also useful for another ikiwiki lovers :)
17 >> Hello Joey! Is it a taboo subject? ;) --[[Paweł|ptecza]]
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.
23 >>> Seems like a job for good ol' string interpolation. rootpage="post/$current_year/$current_month/$current_day"
24 >>> Ikiwiki could provide some vars, and it would be nice to write plugins to also provide vars. Sort of like templates.
25 >>> Does that feel OK? --[[sabr]]
27 > I want the exact same thing. My compromise was to create a `datedblog` module which overrides `inline`'s `sessioncgi` hook
28 > with something that sets the new page name to `%Y-%m-%d.$page` and sets up a meta directive at the beginning of
29 > the content, with the title you wanted. Now if you use the `datedblog` module, you get dated blog entries. But I'd
30 > like to have traditional `inline` functionality too. This would work great if there were a way to change the `do`
31 > parameter in the `blogpost` template's form; if I could change it to `datedblog` instead of `blog` then I could hook
32 > my datedblog module in nicely, without having to override anything. What would be the right way to do that? --[[neale]]