Tags:
create new tag
view all tags

SID-00635: RSS support for Updates Targeting Same page Repeatedly

Status: Unanswered 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%"&gt;%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

 &lt;channel rdf:about="%SCRIPTURL{"view"}%/%INCLUDINGWEB%"&gt; &lt;title&gt;%WIKITOOLNAME%'s &lt;nop&gt;%INCLUDINGWEB% web&lt;/title&gt; &lt;link&gt;%SCRIPTURL{"view"}%/%INCLUDINGWEB%&lt;/link&gt; &lt;description&gt;(the description of the web). TWiki is a Web-Based Collaboration Platform for the Enterprise.&lt;/description&gt; %INCLUDE{"TWiki.WebRssBase"}% &lt;!-- * Set SKIN = rss --&gt;

%STARTINCLUDE%&lt;image rdf:resource="%WIKILOGOIMG%" /&gt;<br />&lt;dc:language&gt;en-us&lt;/dc:language&gt; <br />&lt;dc:rights&gt;%WEBRSSCOPYRIGHT%&lt;/dc:rights&gt; <br />&lt;dc:publisher&gt;%WIKIWEBMASTERNAME% [%WIKIWEBMASTER%]&lt;/dc:publisher&gt; <br />&lt;dc:creator&gt;The contributing authors of %WIKITOOLNAME%&lt;/dc:creator&gt; <br />&lt;dc:source&gt;%WIKITOOLNAME%&lt;/dc:source&gt; <br />&lt;items&gt;<br />&lt;rdf:Seq&gt; <br />%SCRIPTURL{"compare"}%/%WEB%/%TOPICNAME%"&gt;%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 />&lt;/rdf:Seq&gt; <br />&lt;/items&gt; <br />&lt;/channel&gt; <br />&lt;image rdf:about="%WIKILOGOIMG%"&gt; <br />&lt;title&gt;%WIKILOGOALT%.%INCLUDINGWEB%<br />&lt;/title&gt; <br />&lt;link&gt;%SCRIPTURL{"view"}%/%INCLUDINGWEB%<br />&lt;/link&gt; <br />&lt;url&gt;%WIKILOGOIMG%&lt;/url&gt; <br />&lt;/image&gt; <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

      Change status to:
ALERT! 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.
SupportForm
Status Unanswered
Title RSS support for Updates Targeting Same page Repeatedly
SupportCategory CategoryAutomation
TWiki version 4.3.2
Server OS Solaris
Web server Apache 3.0
Perl version 5.61
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2010-01-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.