]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/multiple_rss_feeds_per_page.mdwn
add link to Debian bug report.
[ikiwiki.git] / doc / bugs / multiple_rss_feeds_per_page.mdwn
1 Pages with multiple inline macros try to use the same URL for the RSS feed for each inline. As a result, the last inline "wins" and overwrites the other feeds on the same page.
2
3 Josh Triplett suggests that the inline macro should take a parameter for the feed basename, and refuse to generate feeds after the first one if that parameter is not specified. That sounds like a good solution to me.
4
5 > That's a reasonable fix to this longstanding bug. Autoincrementing a
6 > basename value would also work.
7
8 > I've known about this bug since well, the day I wrote rss support, but
9 > I haven't seen a use case that really motivated me to take the time to
10 > fix it. Fixes or good motivation both accepted. :-) --[[Joey]]
11
12 > A good reason to support autoincrementing might be that it's possible
13 > to have a blog feed that inlines another blog feed. On purpose, or
14 > semi-on-accident, it happened to me:
15
16 > <http://kitenet.net/~joey/code/whatsnew/>
17
18 > The result was that my whatsnew feed actually contains my Words2Nums
19 > feed, or something. --[[joey]]
20
21 > I've implemented autoincrementing unique feeds, the first one on a page
22 > is a .rss, next is .rss2, etc.
23
24 > There may be room for manual specification of feed basenames, but it is tricky to do that
25 > well. One problem is that if page foo adds a feed with basename bar,
26 > the resulting "foo_bar.rss" would have the same name as a feed for page
27 > foo_bar. (Assuming usedirs is not set.) This is also why I stuck the
28 > number on the end of the filename extension -- it's slightly ugly, but
29 > it avoids all such naming ambiguities.
30
31 > Anyway, I think this is [[done]] --[[Joey]]