Im using MW 1.5.0 and i did this
1.Go to CategoryPage.php 2.Go to function doCategoryMagic() 3.Find this: # Showing articles in this category Then insert if statement if ( count ($articles) > 0 ){}
You must have something like this: if ( count ($articles) > 0 ){ $ti = htmlspecialchars( $this->mTitle->getText() ); $r .= '<h2>' . wfMsg( 'category_header', $ti ) . "</h2>\n"; $r .= $this->formatCount( $articles, 'categoryarticlecount' ); $r .= $this->formatList( $articles, $articles_start_char ); }
If you dont have the same version, just take a look if they are the same. I hope that helps.
On 11/24/05, G.Bierens@fontys.nl G.Bierens@fontys.nl wrote:
This should be easy: I have categories which have subcategories, but no articles in it. Still the page shows a header 'Articles' and a line saying 'this category has 0 articles'.
Since this seems kind of non-information to me, I would like to hide it. That is, only when the article-count is zero. Any higher number should be displayed in a normal way.