Difference between revisions of "Dymanic Category Map Mod"
From assela Pathirana
Jump to navigationJump to search
m (Text replace - '<pre>' to ' <pre>') |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[metawikipedia:Dynamic_Category_Map]] is a very useful extension that allows creation of a nice site map of a mediawiki site. I use this extension in my personal site. However, I made some minor modifications so that all the required files are held in a directory under the extensions. No files would be copied to includes. I felt that this is a much cleaner way of doing things, for then one should not have to worry about where the related files are, in situations like upgrading of mediawiki version. | |||
I | |||
(Details of the modification are given below. [[Image:Dymanic_Category_Map_Modified.tar.gz | (Details of the modification are given below. Download the modified version from this link: [[Image:Dymanic_Category_Map_Modified.tar.gz]]) | ||
* Here are the changes: | * Here are the changes: | ||
*# CategoryMap.php <nowiki> | *# CategoryMap.php <nowiki> | ||
</nowiki><pre><nowiki>require_once( "$wgDynamicCategoryMapPath/CategoryTravelerBase.php" );</nowiki></pre> | </nowiki> | ||
<pre><nowiki>require_once( "$wgDynamicCategoryMapPath/CategoryTravelerBase.php" );</nowiki></pre> | |||
*# CategoryTravelerBase.php <nowiki> | *# CategoryTravelerBase.php <nowiki> | ||
</nowiki><pre><nowiki>require_once( "$wgDynamicCategoryMapPath/CategoryNode.php" );</nowiki></pre> | </nowiki> | ||
<pre><nowiki>require_once( "$wgDynamicCategoryMapPath/CategoryNode.php" );</nowiki></pre> | |||
*# DynamicCategoryMap.php<nowiki> | *# DynamicCategoryMap.php<nowiki> | ||
</nowiki><pre><nowiki>require_once ("$wgDynamicCategoryMapPath/CategoryMap.php");</nowiki></pre> | </nowiki> | ||
<pre><nowiki>require_once ("$wgDynamicCategoryMapPath/CategoryMap.php");</nowiki></pre> | |||
* Then add the following to the LocalSettings.php<nowiki> | * Then add the following to the LocalSettings.php<nowiki> | ||
</nowiki><pre><nowiki> | </nowiki> | ||
<pre><nowiki> | |||
$wgDynamicCategoryMapPath="extensions/DynaicCategoryMap"; | $wgDynamicCategoryMapPath="extensions/DynaicCategoryMap"; | ||
require_once ("$wgDynamicCategoryMapPath/DynamicCategoryMap.php"); | require_once ("$wgDynamicCategoryMapPath/DynamicCategoryMap.php"); | ||
</nowiki></pre> | </nowiki></pre> | ||
[[Category:Computing]][[Category:Mediawiki]] |
Latest revision as of 19:10, 2 October 2009
metawikipedia:Dynamic_Category_Map is a very useful extension that allows creation of a nice site map of a mediawiki site. I use this extension in my personal site. However, I made some minor modifications so that all the required files are held in a directory under the extensions. No files would be copied to includes. I felt that this is a much cleaner way of doing things, for then one should not have to worry about where the related files are, in situations like upgrading of mediawiki version.
(Details of the modification are given below. Download the modified version from this link: File:Dymanic Category Map Modified.tar.gz)
- Here are the changes:
- CategoryMap.php
require_once( "$wgDynamicCategoryMapPath/CategoryTravelerBase.php" );
- CategoryTravelerBase.php
require_once( "$wgDynamicCategoryMapPath/CategoryNode.php" );
- DynamicCategoryMap.php
require_once ("$wgDynamicCategoryMapPath/CategoryMap.php");
- Then add the following to the LocalSettings.php
$wgDynamicCategoryMapPath="extensions/DynaicCategoryMap"; require_once ("$wgDynamicCategoryMapPath/DynamicCategoryMap.php");