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



    s23
    3,189Articles

    Template talk:CategoryRSS: Difference between revisions

    Content added Content deleted
    imported>mutante
    m (New page: I have directly edited ./includes/CategoryPage.php and added code into function getCategoryTop(): <SyntaxHighlight lang=php> function getCategoryTop() { global $wgOut; ... # Add Feed lin...)
     
    imported>mutante
    mNo edit summary
    Line 1: Line 1:
    I have directly edited ./includes/CategoryPage.php and added code into function getCategoryTop():
    I have directly edited ./includes/CategoryPage.php and added code into function getCategoryTop():


    <SyntaxHighlight lang=php>
    <HighlightSyntax lang=php>
    function getCategoryTop() {
    function getCategoryTop() {
    global $wgOut;
    global $wgOut;
    Line 11: Line 11:
    return $r;
    return $r;
    }
    }
    </HighlightSyntax>
    </SyntaxHighlight>


    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.
    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.

    Revision as of 23:04, 28 February 2007

    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 = " Feeds for page edits in Category:CategoryRSS  (atom, rss)
    

    see also CategoryTree

    \n";

    $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)

    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.