Revision [10512]
This is an old revision of RSSAutoDiscovery made by DarTar on 2005-08-07 14:25:54.
RSS Auto discovery
A small modification to header.php allows Wikka feeds to be autodiscovered by browsers supporting this function.
Add the following lines after the stylesheet-related lines in actions/header.php:
<?php
if ($this->GetMethod() != 'edit') {
$rsslink = "\t".'<link rel="alternate" type="application/rss+xml" title="'.$this->GetWakkaName().': revisions for '.$this->tag.'" href="'.$this->Href('revisions.xml', $this->tag).'" />'."\n";
$rsslink .= "\t".'<link rel="alternate" type="application/atom+xml" title="'.$this->GetWakkaName().': recently edited pages" href="'.$this->Href('recentchanges.xml', $this->tag).'" />'."\n";
echo $rsslink;
}
?>
if ($this->GetMethod() != 'edit') {
$rsslink = "\t".'<link rel="alternate" type="application/rss+xml" title="'.$this->GetWakkaName().': revisions for '.$this->tag.'" href="'.$this->Href('revisions.xml', $this->tag).'" />'."\n";
$rsslink .= "\t".'<link rel="alternate" type="application/atom+xml" title="'.$this->GetWakkaName().': recently edited pages" href="'.$this->Href('recentchanges.xml', $this->tag).'" />'."\n";
echo $rsslink;
}
?>
Browser support
The RSS autodiscovery feature is currently supported by:
Mozilla/Firefox
Safari 2.X
Yahoo toolbar for IE
CategoryDevelopment