Question
I'm using the
infoRSS
extension for firefox to receive
WebRss updates. But for argument's sake, it could be any RSS reader.
I'd like to be able to filter out topics that I've just edited from the RSS headlines I receive. Afterall, if I made the change then I don't need to see it as a headline. On the other hand, if someone has followed up on my edit, then I do want to see the headline.
Does anyone have experience with filtering
WebRss feeds based on author of the most recent rev ?
Updated Question
infoRSS
allows you to filter the feeds you see based on any of these conditions :
- headline
- body
- category
- published date
- received date
- read date
- headline #
Is there a way to customize the data that is sent from
WebRss ? For example, would it be possible to populate the
category field in an RSS headline from the value of a
TWikiForms field ?
Environment
--
KeithHelfrich - 19 Dec 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
If you let InfoRSS do all the filtering you only need to change TWiki.WebRssBase or to create a custom version of WebRssBase. (Plus if you have a new topic with your own WebRssBase, you need to call that one from WebRss)
In your WebRssBase add:
<dc:category>$formfield(Category)</dc:category>$n
(where
Category is the category field name of your form)
If you want to let TWiki do some filtering (works for categories, not for authors, or I haven't found a way to do that), you would need to create a custom search that you pass to
WebRss. I have just done this for
BlogAddOn. It looks like this:
%SCRIPTURL{"view"}%/%BASEWEB%/WebRss?search=%ENCODE{"[T]opicType.*value\=.*(BlogPost);[C]ategory.*value\=.*(%URLPARAM{"category"}%)" type="url"}%;regex=on;casesensitive=on;excludetopic=BlogPostTemplate,BlogPost;limit=16;scope=text
(make sure you put such a search within
<noautolink> tags.
You can test these searches if you change WebRss to WebSearchAdvanced.
--
ArthurClemens - 21 Dec 2006
Actually, you can use the existing
WebRss topic, it understands a search parameter as documented in
WebRssBase. The search can be any regex, ANDed with semicolon, and negated with exclamation point, such as
soap;web service;!shampoo.
Note on performance: TWiki.org is already at 100% CPU; please do not access RSS more than once every 15 minutes if you use a search parameter. A normal RSS feed without search is cached, those with search are not cached.
--
PeterThoeny - 21 Dec 2006
The filter example I gave above uses the existing
WebRss topic. But to add a field for category you will need to make a change or create a new WebRssBase topic.
--
ArthurClemens - 21 Dec 2006
Correct, to change the feed format you need to modify the WebRssBase topic.
To search for the last author, search for
META:TOPICINFO.*author.*<name>, such as this feed:
https://twiki.org/cgi-bin/view/Support/WebRss?search=META:TOPICINFO.*author.*PeterThoeny
--
PeterThoeny - 24 Dec 2006
Hello,
I would really appreciate some help.
I am trying to filter my RSS topics using the following command but it is not working:
http://...WebRss?search=2171
I only want to show topics containing the number 2171 but all topics are being shown as normal.
Can anyone help?
Thanks,
Craig
--
CraigNicoll - 14 Aug 2007