From: Michael A. <ch...@mu...> - 2004-12-20 17:18:35
|
Cool!!! -----Original Message----- From: erl...@li... [mailto:erl...@li...] On Behalf Of Jouni = Ryn=F6 Sent: 20. december 2004 18:09 To: Torbjorn Tornkvist Cc: erl...@li... Subject: Re: [Erlyaws-list] wiki and RSS Yup, I have now a rude version of wiki pages giving out the rss feed! Thanks Tobbe. I added a routine to every wiki store operation pageUpdateNotify(Page, Root, Time, Who) -> %% io:fwrite("Page ~p update at ~p by ~p, root ~p~n",=20 %% [Page, Time, Who, Root]), Title =3D io_lib:fwrite("~s was changed", [Page]), Link =3D wiki_to_html:format_link(Page, Root), Change =3D io_lib:fwrite("The ~s page has been modified", [Page]), yaws_rss:insert(wiki, xml,=20 Title, Link, Change, Who), ok. The "Who" and "Change" fields don't add any new information, as there's no input to those fields. Really, to be useful, there should be form fields in the store page to input that data. Should that be added? As I think, that some of my colleagues are not ready to jump on rss, I still play with the idea of adding the emailer together with that rss insert. Would be pretty straightforward.=20 Funny, but maybe a confusing idea would be to replace the rss db-function with the emailer :) But then one cannot have both :( regards Jouni On Mon, 2004-12-20 at 12:34 +0100, Torbjorn Tornkvist wrote: > Hi, >=20 > I just committed the last bits to make Yaws RSS capable. > To read how to setup an Yaws RSS feed, see the description > in doc/README.rss . >=20 > Now it just a matter of making the wiki application to produce > some suitable content. Basically one function needs to be called: >=20 > yaws_rss:insert(wiki, new, Title, Link, Desc, Creator). >=20 > The config file should then contain: >=20 > <server ....> > ... > <rss> > rss_id =3D wiki > </rss> > ... > </server> >=20 > Cheers, Tobbe >=20 >=20 --=20 Jouni Ryn=F6 mailto://Jou...@fm.../ http://www.geo.fmi.fi/~ryno/ Finnish Meteorological Institute http://www.fmi.fi/ Space Research http://www.geo.fmi.fi/ P.O.BOX 503 Tel (+358)-9-19294656 FIN-00101 Helsinki FAX (+358)-9-19294603 Finland priv-GSM (+358)-50-5302903 =20 "It's just zeros and ones, it cannot be hard" ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.=20 http://productguide.itmanagersjournal.com/ _______________________________________________ Erlyaws-list mailing list Erl...@li... https://lists.sourceforge.net/lists/listinfo/erlyaws-list |