]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/rss_title_description.mdwn
fix
[ikiwiki.git] / doc / todo / rss_title_description.mdwn
1 There could be a better way of setting the title and description of the rss feeds. Perhaps 
2 through the meta plugin, or extra options to the inline plugin.
3
4 At the moment The description is the same for all feeds from
5 a single wiki it seems, and the title is forced to be one word, 
6 though I don't think it needs to be.
7
8 A few pointers and I might be able to implement this myself. -- JamesWestby
9
10         I don't see any problem with the title, it's the same as the title
11         of the wiki page that the rss feed comes from, which can be set
12         using the meta plugin. There are no restrictions to one word or
13         anything like that. Just made ikiwiki emit the following in a test
14         feed:
15
16                 <title>billy bob&#39;s news</title>
17
18         Now, the description field currently defaults to the wiki name,
19         and that could indeed stand to be made configurable. Since the
20         current (svn) version of ikiwiki supports long, word-wrapped
21         blocks of text as parameters to [[PreProcessorDirective]]s, seems
22         to me the best way would be to simple modify inline.pm to make the
23         descripion configurable by such parameter, with a fallback to the
24         wiki name. You'll need to modify rsspage.tmpl to use whatever new
25         template variable you define, that should be all.
26
27         --[[Joey]]
28
29 Apologies for the title thing. I tried it yesterday, and it onlt used the first word.
30 I must have done something wrong. I'll have a look at implementing the description.
31 Thanks. -- JamesWestby
32
33 My patch can be found at <http://jameswestby.net/scratch/blog-desc.diff> -- JamesWestby
34
35         Thanks, [[todo/done]] --[[Joey]]