Difference between revisions of "Dymanic Category Map Mod"
From assela Pathirana
Jump to navigationJump to search
Line 2: | Line 2: | ||
I am using 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 am using 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. [[Image:Dymanic_Category_Map_Modified.tar.gz | (Details of the modification are given below. [[Image:Dymanic_Category_Map_Modified.tar.gz DOWNLOAD]] the modified version.) | ||
* Here are the changes: | * Here are the changes: |
Revision as of 08:20, 22 March 2006
This is a very useful extension written by I am using 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. File:Dymanic Category Map Modified.tar.gz DOWNLOAD the modified version.)
- 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");
- CategoryMap.php
- Then add the following to the LocalSettings.php
$wgDynamicCategoryMapPath="extensions/DynaicCategoryMap"; require_once ("$wgDynamicCategoryMapPath/DynamicCategoryMap.php");