fix comment permalink to always point to comment parent page
[ikiwiki.git] / doc / todo / comments.mdwn
1 Known issues with the [[plugins/comments]] plugin:
2
3 * There is some common code cargo-culted from other plugins (notably inline and editpage) which
4   should probably be shared
5
6   > Actually, there's less of this now than there used to be - a lot of simple
7   > things that were shared have become unshareable as they became more
8   > complex. --[[smcv]]
9
10 * Previews always say "unknown IP address"
11
12 * Add `COMMENTOPENID`: the authenticated/verified user name, if and only if it was an OpenID
13
14   > Done in my comments git branch --[[smcv]]
15
16   > Not seeing it there, which branch? --[[Joey]] 
17
18 * The default template should have a (?) icon next to unauthenticated users (with the IP address
19   as title) and an OpenID icon next to OpenIDs
20
21   > Done in my comments git branch, at least as a mockup (using the (?),
22   > {x} and {*} smileys for anonymous, OpenID and login respectively).
23   > --[[smcv]]
24
25 * Should the comments be visually set off more from the page above?
26   Rather than just a horizontal rule, I'm thinking put the comments
27   in a box like is used for inlined pages.
28
29   > I did put them in a box in the CSS... I agree the default template
30   > could do with visual improvement though. --[[smcv]]
31
32 * Instead of just a link to add a comment, it could have a form to enter
33   the title, similar to the form for adding a new blog post.
34
35   > I'm not sure this is so useful? On Livejournal titles are allowed on
36   > comments, but very rarely used (and indeed usually not very useful);
37   > it's hard enough to get some people to title their blog posts :-)
38   > --[[smcv]]
39
40 * If a spammer posts a comment, it is either impossible or hard to clean
41   up via the web. Would be nice to have some kind of link on the comment
42   that allows trusted users to remove it (using the remove plugin of
43   course).
44
45   > Won't the remove plugin refuse to remove internal pages? This would be
46   > a good feature to have, though. --[[smcv]]
47
48 * One can use inline to set up a feed of all comments posted to any page.
49   Using template=comment they are displayed right. Only problem
50   is there is no indication in that template of what page each comment in the
51   feed is a comment on. So, if a comment is inlined into a different page,
52   I think it should show a link back to the page commented on.
53   (BTW, the rss feed in this situation seems ok; there the link element
54   points back to the parent page.
55
56   > done --[[Joey]] 
57
58 * It would be useful to have a pagespec that always matches all comments on 
59   pages matching a glob. Something like `comment(blog/*)`.
60   Perhaps postcomment could also be folded into this? Then the pagespec
61   would match both existing comments, as well as new comments that are
62   being posted.
63
64   > Please see [[plugins/comments/discussion]]. If I've convinced you that
65   > internal pages are the way forward, then sure, we can do that, because
66   > people who can comment still won't be able to edit others' comments
67   > (one of my goals is that commenters can't put words into each other's
68   > mouths :-) )
69   >
70   > On the other hand, if you still want me to switch this plugin to "real"
71   > pages, or if internal pages might become editable in future, then
72   > configuring lockedit/anonok so a user X can add comments to blog pages
73   > would also let X edit/delete comments on blog pages (including those
74   > written by others) in arbitrary ways, which doesn't seem good. --[[smcv]]
75
76   > I had a look at implementing comment() and fell afoul of 
77   > some optimisations that assume only internal() will be used to match
78   > internal pages. So probably this isn't worth doing. --[[Joey]] 
79
80 * One of Joey's commit messages says "Not ideal, it would be nicer to jump to
81   the actual comment posted, but no anchor is available". In fact there is
82   an anchor - the `\[[_comment]]` preprocessing wraps the comment in a <div>
83   with id="comment_123" or something. I'll fix this, unless Joey gets there
84   first. --[[smcv]]
85
86   > done --[[Joey]] 
87
88 * Now that inline has some comments-specific functionality anyway, it would
89   be good to output '<link rel="comments">' in Atom and the equivalent in RSS.