Wiki Metadata Keywords
From Fxp Wiki
How to add keywords corresponding to each page ?
Comment ajouter des mots clès en accord avec chaque page ?
Metadata: Keywords Content
Version 1.3
Modified the OutputPage.php function addMetaTags () to include the Category links
$bad = array_keys ( $wgLinkCache->mBadLinks ) ;
$mycats = array_keys ( $wgLinkCache->mCategoryLinks ) ;
$a = array_merge ( $good , $bad, $mycats ) ; $a = array_slice ( $a , 0 , 10 ) ; # 10 keywords max $a = implode ( "," , $a ) ; $strip = array( "/<.*?>/" => '', "/[_]/" => ' ',
"/Category:/" => ''
); $a = htmlspecialchars(preg_replace(array_keys($strip), array_values($strip),$a ));
