[Home]WikiPatches/RssLinkInHeader

UseModWiki | WikiPatches | RecentChanges | Preferences

I added this for 1.0.5. --MarkusLude

Rss Link In Header

Description

This mini-patch adds a link to the wiki's RSS feed to the HTML header.

This allows users RSS-aware browsers, such as Mozilla Firefox and Opera 8 or higher to easily add a "live bookmark" to the wiki.

Patch

--- wiki.pl     2003-09-11 14:21:02.000000000 +0200
+++ RssLinkInHeader.pl  2005-11-07 10:21:27.000000000 +0100
@@ -1350,6 +1350,8 @@
   $html = qq(<!DOCTYPE HTML PUBLIC "$dtd">\n);
   $title = $q->escapeHTML($title);
   $html .= "<HTML><HEAD><TITLE>$title</TITLE>\n";
+  $html .= "<LINK REL=\"alternate\" TITLE=\"$SiteName RSS\" HREF=\""
+    . $ScriptName . &ScriptLinkChar() . "action=rss\" TYPE=\"application/rss+xml\">\n";
   if ($FavIcon ne '') {
     $html .= '<LINK REL="SHORTCUT ICON" HREF="' . $FavIcon . '">'
   }

-- UngarPeter

UseModWiki | WikiPatches | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited August 23, 2009 11:42 pm by MarkusLude (diff)
Search: