comments
[ikiwiki] / doc / todo / default_content_for_new_post.mdwn
1 Along the same lines as having a [[default_name_for_new_post]]s, an option
2 to include default content in a new [[plugins/inline]] post would help with
3 tasks like using an inline for a comment form on each new blog post.
4 --[[JoshTriplett]]
5
6 No, it would only help if the new blog post were being made via the form.
7 If you're editing it in vi, and committing, it doesn't help. :-) This is
8 another reason why I prefer the approach in [[discussion_page_as_blog]].
9 Although I don't mind getting this implemented too, for other reasons.
10
11 I see three possible designs:
12
13 1. Simply use the bestlink(new_page_content) as the default content. Thomas
14    Schwinge emailed me an implementation of this. It has the problem that 
15    it doesn't make sense to use the same new page template for a Discussion
16    page as for the page being discussed. (That's a specific case of a more
17    general problem.)
18
19 1. Modify inline so that "template=foo" uses page foo as the template for
20    new posts made to the blog. This doesn't cater to every case, but
21    perhaps it would be enough?
22
23 1. Make pages able to embed in them a pagespec that says they are the
24    template when new pages are created that match that pagespec. 
25    This is the most general solution, but depends on
26    [[plugin_data_storage]].
27
28 --[[Joey]]
29
30 This feature would also allow the automatic inclusion of a given template in
31 every new post, which could help for [[/plugins]] (automatically use the
32 plugin template), or for [[/bugs]] and [[todo_items|/todo]] (automatically use
33 a template that appends "(done)" to the title if the page links to
34 "done"). --[[JoshTriplett]]
35
36 > This is a feature I miss a lot from MoinMoin, and is especially helpful when you maintain pages which have a regular format (eg. recipe pages).  I understand that using svn would bypass this feature but I think it's worth considering anyway because:
37
38 > * For any given site often it's only the admin user who makes changes via svn, everyone else uses the web
39 > * It's remote and casual users who benefit most from having standard templates to use for new pages
40 > * When using svn to make changes it's easier to manually provide template functionality (eg. cp recipe_template.mdwn newpage.mdwn)
41
42 > All of course bearing in mind that I'm just commenting because I don't have the skills to actually make the required changes. ;-) -- [[AdamShand]]
43