SID-00635: RSS support for Updates Targeting Same page Repeatedly
| Status: |
Unanswered |
TWiki version: |
4.3.2 |
Perl version: |
5.61 |
| Category: |
CategoryAutomation |
Server OS: |
Solaris |
Last update: |
16 years ago |
Our organization's goal is to create a Webhome where we put all our project related updates. We want to create a RSS feed that sends out the title of the latest post, then a description that is the body of that post. How would I create a search that does not deliver the topic name and top line as the title, and first line as the description but instead a heading 6 style as title and the line following as the description? Honestly, I am not a web programmer, I am a statistical programmer and reading the search methods on
SearchPatternCookbook rather confused me. I believe the answer is to change the line of code that begins with %SEARCH{ in the
WebRssBase topic? I pasted in my entire WebRssBase configuration below.
This post is quite close to what i wanted, but I could not implement the answer:
HowToProvideRSSforAsubsetOfAweb
This site had very useful information about adding $foo5, but I had no idea where to do that:
RSSOnlyShowsNewTopicsNotUpdates
This post was also helpful about optimizing the search in WebRssBase:
FilterRSS
I also read this article about optimizing Twiki searches:
SearchPatternCookbook
I also read
RichSiteSummary,
The base search in
WebRssBase is:
%SEARCH{"%URLPARAM{"search" encode="quote" default=".*" }%" web="%URLPARAM{"web" encode="quote" default="%INCLUDINGWEB%"
My Current Search is:
%SCRIPTURL{"compare"}%/%WEB%/%TOPICNAME%">%IF{"%SEARCH{"\-\-\-\+.*" web="%WEB%" topic="%TOPICNAME%" type="regex" scope="text" nonoise="on" format="%TOPICNAME%"}%" then="%SEARCH{"\-\-\-\+.*" web="%WEB%" topic="%TOPICNAME%" type="regex" scope="text" nonoise="on" format="<b>$pattern(^\-\-\-\+*?\s([^\n\r]*).*)</b>"}%" else="<b>%TOPICNAME%</b>"}%
My WebRssBase
<channel rdf:about="%SCRIPTURL{"view"}%/%INCLUDINGWEB%"> <title>%WIKITOOLNAME%'s <nop>%INCLUDINGWEB% web</title> <link>%SCRIPTURL{"view"}%/%INCLUDINGWEB%</link> <description>(the description of the web). TWiki is a Web-Based Collaboration Platform for the Enterprise.</description> %INCLUDE{"TWiki.WebRssBase"}% <!-- * Set SKIN = rss -->
%STARTINCLUDE%<image rdf:resource="%WIKILOGOIMG%" /><br /><dc:language>en-us</dc:language> <br /><dc:rights>%WEBRSSCOPYRIGHT%</dc:rights> <br /><dc:publisher>%WIKIWEBMASTERNAME% [%WIKIWEBMASTER%]</dc:publisher> <br /><dc:creator>The contributing authors of %WIKITOOLNAME%</dc:creator> <br /><dc:source>%WIKITOOLNAME%</dc:source> <br /><items><br /><rdf:Seq> <br />%SCRIPTURL{"compare"}%/%WEB%/%TOPICNAME%">%IF{"%SEARCH{"\-\-\-\+.*" web="%WEB%" topic="%TOPICNAME%" type="regex" scope="text" nonoise="on" format="%TOPICNAME%"}%" then="%SEARCH{"\-\-\-\+.*" web="%WEB%" topic="%TOPICNAME%" type="regex" scope="text" nonoise="on" format="<b>$pattern(^\-\-\-\+*?\s([^\n\r]*).*)</b>"}%" else="<b>%TOPICNAME%</b>"}% <br /></rdf:Seq> <br /></items> <br /></channel> <br /><image rdf:about="%WIKILOGOIMG%"> <br /><title>%WIKILOGOALT%.%INCLUDINGWEB%<br /></title> <br /><link>%SCRIPTURL{"view"}%/%INCLUDINGWEB%<br /></link> <br /><url>%WIKILOGOIMG%</url> <br /></image> <br />%SEARCH{"%URLPARAM{"search" encode="quote" default=".*" }%" web="%URLPARAM{"web" encode="quote" default="%INCLUDINGWEB%" }%" excludetopic="%URLPARAM{"excludetopic" encode="quote" default="WebStatistics" }%" type="%URLPARAM{"type" encode="quote" default="regex" }%" nosearch="on" order="modified" reverse="on" nototal="on" limit="%URLPARAM{"limit" encode="quote" default="16" }%" scope="%URLPARAM{"scope" encode="quote" default="text" }%" casesensitive="%URLPARAM{"casesensitive" encode="quote" default="on" }%" date="%URLPARAM{"date" encode="quote" default="" }%" format="<br /><item rdf:about=\"%SCRIPTURL{"view"}%/$web/$topic\">$n <title>$topic</title>$n <link>%SCRIPTURL{"view"}%/$web/$topic</link>$n <description>$summary (last changed by <nop>$wikiname)<br /></description>$n <br /><dc:date>$isodate</dc:date>$n <br /><dc:contributor>$n <br /><rdf:Description link=\"%SCRIPTURL{"view"}%?topic=$wikiusername\">$n <br /><rdf:value>$username</rdf:value>$n <br /></rdf:Description>$n <br /></dc:contributor>$n</item>"}% %STOPINCLUDE%
--
DanielBeaulieu - 2009-11-20
Discussion and Answer
Essentially, I wanted a RSS features that delivers something that notices only what has changed and shows that, instead of what I have now which only gives title topic and first line of page.
--
DanielBeaulieu - 2009-11-20
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2010-01-03
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.