X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/dcc3d02cc0d104504a46eb7156349629454b0938..3a04e96389def78bcb873a4487b85f4d75653199:/doc/todo/dynamic_rootpage.mdwn?ds=inline diff --git a/doc/todo/dynamic_rootpage.mdwn b/doc/todo/dynamic_rootpage.mdwn index fe95aff56..fc6d7f012 100644 --- a/doc/todo/dynamic_rootpage.mdwn +++ b/doc/todo/dynamic_rootpage.mdwn @@ -1,5 +1,5 @@ I prefer to use a current year, month and day to archive my blog posts, for example -`post/2007/11/12/foo-bar-baz` path is better for me then `post/foo-bar-baz`. +`post/2007/11/12/foo-bar-baz` path is better for me than `post/foo-bar-baz`. Unfortunately it seems that `rootpage` parameter of inline plugin is very static. Is it a chance to make it more dynamic? Now I have to use `svn mkdir` command to create appropriate subdirectories by hand. @@ -19,3 +19,17 @@ What's your opinion, Joey? I hope it's also useful for another ikiwiki lovers :) >> No, but I don't know of a way to do it that feels flexible and right.. >> Using functions as in your example doesn't feel right somehow. >> --[[Joey]] + +>>> Seems like a job for good ol' string interpolation. rootpage="post/$current_year/$current_month/$current_day" +>>> Ikiwiki could provide some vars, and it would be nice to write plugins to also provide vars. Sort of like templates. +>>> Does that feel OK? --[[sabr]] + +> I want the exact same thing. My compromise was to create a `datedblog` module which overrides `inline`'s `sessioncgi` hook +> with something that sets the new page name to `%Y-%m-%d.$page` and sets up a meta directive at the beginning of +> the content, with the title you wanted. Now if you use the `datedblog` module, you get dated blog entries. But I'd +> like to have traditional `inline` functionality too. This would work great if there were a way to change the `do` +> parameter in the `blogpost` template's form; if I could change it to `datedblog` instead of `blog` then I could hook +> my datedblog module in nicely, without having to override anything. What would be the right way to do that? --[[neale]] + +> This is basically the same request as +> [[todo/inline_postform_autotitles]]. --[[smcv]]