feed.php looks to give you what you would need.
Not had much of a chance to have an in depth look, but it does seem to be the file that builds the RSS document for you.
I guess you could remove parts from that until you get what you wish to achieve. Let us know how you get on....
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Mark Cunningham Sent: 14 July 2005 11:30 To: Arthur Guy Cc: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Configuring RSS output
On 7/14/05, Arthur Guy arthur@astarsolutions.co.uk wrote:
Configure it to do what?
The format of the content of the RSS feed; i.e. rather than the full comparision of the change, just a summary or perhaps one column...
I imagine it uses its own style sheet so the best bet would be to find this is and edit it.
Are stylesheets use to configure content?
I modified the RSS feed because it was crashing the server providing our headlines. For New Articles, the entire contents of the article is in the feed. I shortened the string as shown below; the titles and summaries come out okay. I noticed in 1.4.5 even after my change, if Recent Changes includes uploads, the entire upload log seems to be in the RSS feed. I haven't figured out where that string is generated in order to shorten it.
in QueryPage.php, in function feedItemDesc(), change this:
if( isset( $row->text ) ) { $text = "<p>" . htmlspecialchars( wfMsg( "summary" ) ) . ": " . $text . "</p>\n<hr />\n<div>" . nl2br( htmlspecialchars( $row->text ) ) . "</div>";; }
to this: if( isset( $row->text ) ) { $text = "<p>" . htmlspecialchars( wfMsg( "summary" ) ) . ": " . $text . "</p>\n"; }
Michelle
On Jul 14, 2005, at 3:47 AM, David Patrick wrote:
feed.php looks to give you what you would need.
Not had much of a chance to have an in depth look, but it does seem to be the file that builds the RSS document for you.
I guess you could remove parts from that until you get what you wish to achieve. Let us know how you get on....
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of Mark Cunningham Sent: 14 July 2005 11:30 To: Arthur Guy Cc: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Configuring RSS output
On 7/14/05, Arthur Guy arthur@astarsolutions.co.uk wrote:
Configure it to do what?
The format of the content of the RSS feed; i.e. rather than the full comparision of the change, just a summary or perhaps one column...
I imagine it uses its own style sheet so the best bet would be to find this is and edit it.
Are stylesheets use to configure content?
On 7/15/05, Michelle michelle.sg1@gmail.com wrote:
I modified the RSS feed because it was crashing the server providing our headlines. For New Articles, the entire contents of the article is in the feed. I shortened the string as shown below; the titles and summaries come out okay. I noticed in 1.4.5 even after my change, if Recent Changes includes uploads, the entire upload log seems to be in the RSS feed. I haven't figured out where that string is generated in order to shorten it.
I managed to do it without hacking the code. I wanted to keep ease of upgrade. So I created a new SpecialPage which is a copy of Special:Newpages (i.e. includes\SpecialNewpages.php). I used http://meta.wikimedia.org/wiki/Writing_a_new_special_page to allow me to add the page to my install without hacking.
I then updated the SQL call to take only what I want in the RSS feed (basically only the main namespace).
I then added a function feedItemDesc which overrides QueryPage.php's function and modified it to display the output the way I want. Namely the first 100 words of the article, the comment and a note to say if it is updated or new.
Seems to be working pretty well and I can modify my special page to my hearts content! :)
mediawiki-l@lists.wikimedia.org