]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/inline_plugin:_ability_to_override_feed_name.mdwn
note that the master branch also ahs this
[ikiwiki.git] / doc / todo / inline_plugin:_ability_to_override_feed_name.mdwn
1 If RSS and Atom are enabled by default, the [[plugins/contrib/comments]]
2 plugin generates a feed, perhaps `/sandbox/index.atom` for comments on the
3 sandbox. If a blog is added to the page, the blog will steal the name
4 `/sandbox/index.atom` and the comments plugin's feed will change to
5 `/sandbox/index.atom2`.
6
7 If `\[[!inline]]` gained a parameter `feedname` or something, the comments
8 plugin could use `feedname=comments` to produce `/sandbox/comments.atom`
9 instead (this would just require minor enhancements to rsspage(),
10 atompage() and targetpage()).
11
12 As a side benefit, [my blog](http://smcv.pseudorandom.co.uk/) could go back
13 to its historical Atom feed URL of `.../feed.atom` (which is currently a
14 symlink to `index.atom` :-) )
15
16 On sites not using `usedirs` the current feed is `/sandbox.atom`, and we
17 could perhaps change it to `/sandbox-comments.atom` or
18 `/sandbox/comments.atom` if `feedname=comments` is given.
19
20 --[[smcv]]
21
22 > This is slightly hard to do, because you have to worry about 
23 > conflicting pages setting feedname, which could cause ikiwiki to blow up.
24
25 > Particularly for the non-usedirs case, where a page `sandbox/comments`
26 > would produce the same feed as sandbox with `feedname=comments`.
27 > --[[Joey]]
28
29 > [[done]] as feedfile option --[[Joey]]