Extension:AutoKeywords

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png

Release status: beta

AutoKeywords screenshot.jpg
Description Mediwiki extension for automated meta keywords
Author(s) (Abhi M Balakrishnantalk)
Last version 0.1 (08 December 2012)
MediaWiki 1.20
PHP 5.3
License GPL
Download Mirror 1
Readme
Example Secpedia
Parameters

$CommonKeywords

Tags
seo, meta, keywords
Hooks used
BeforePageDisplay
Check usage and version matrix

Automatically adds meta keywords to articles according to current page, categories and with pre defined set of keywords.

Contents

Introduction [edit]

Adds meta keywords to all Mediawiki pages automatically.

Installation [edit]

  • Download and extract the files in a directory called "AutoKeywords" in your extensions/ folder.
  • Add the following code to your LocalSettings.php (at the bottom)
require_once( "$IP/extensions/AutoKeywords/AutoKeywords.php" );
  • Yes check.svg Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
  • Copy the AutoKeywords directory into the extensions folder of your MediaWiki installation.
  • Add following lines to your LocalSettings.php file towards the end:

$CommonKeywords = "keywords, that are, relevant, to your site, in comma separated values"; require_once("$IP/extensions/AutoKeywords/AutoKeywords.php");

  • See Special:Version and confirm the presence of AutoKeywords under "Installed extensions", "other" category
  • Clear the cache of your browser
  • Reload any Mediawiki page
  • Check the HTML source and confirm the presence of following line before </head>:

<meta name="keywords" content="sitename, article name, category name 1, category name 2, keywords, that are, relevant, to your site, in comma separated values" />

Configuration parameters [edit]

$CommonKeywords = "keywords, that are, relevant, to your site, in comma separated values";
Change it according to the requirement.

References [edit]