Create a new article
Write your page title here:
We currently have 3,185 articles on s23. Type your article name above or create one of the articles listed here!


    Template talk:CategoryRSS

    Revision as of 04:40, 25 April 2007 by imported>RobiH (Removed completed task; Sorted by priority)
    (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

    I have directly edited ./includes/CategoryPage.php and added code into function getCategoryTop():

    <HighlightSyntax lang=php> function getCategoryTop() { global $wgOut; ...

    # Add Feed link to all Category pages, hack by s23 for WikiFeeds
    $rsstemplate = "Feed-icon-16x16.png Feeds for page edits in Category:CategoryRSS  (atom, rss)

    see also CategoryTree


    $rsstemplate = $wgOut->parse( $rsstemplate );
    $r .= $rsstemplate;
    return $r;

    } </HighlightSyntax>

    This inserts the contents of this template into every Category: page automatically. So even though all those edits would have been nice for our stats you dont have to do that work;) Also since we dont include the hardcoded link, but the template and parse it right in place, still all users can edit the template contents and it will affect all Category pages right away, also those created in the future. Just have to remember to add this again after every update, like all those other minor modifications..

    mutante 00:03, 1 March 2007 (CET)

    P.S. took, those pages where you have already manually added the template are now currently showing it twice.

    Sure, took CategoryTree was a good idea. Why not. Btw: If you also wondered before whether Atom or RSS is better, the author of WikiFeeds says Atom is the future and he will not spend time anymore to make RSS support perfect. One should prefer Atom. I tend to believe him on that and will also use Atom, we can expect better results from that. mutante 10:57, 3 March 2007 (CET)

    Fixed feed links with whitespaces in category name[edit]

    Needed fix for Category pages with whitespace in names. Done now for real. Needed
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.