Difference between revisions of "Dymanic Category Map Mod"

From assela Pathirana
Jump to navigationJump to search
Line 1: Line 1:
This is a very useful extension written by
[[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 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.  Download the modified version from this link: [[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]])

Revision as of 08:23, 22 March 2006

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:
    1. CategoryMap.php
      require_once( "$wgDynamicCategoryMapPath/CategoryTravelerBase.php" );
    2. CategoryTravelerBase.php
      require_once( "$wgDynamicCategoryMapPath/CategoryNode.php" );
    3. DynamicCategoryMap.php
      require_once ("$wgDynamicCategoryMapPath/CategoryMap.php");
  • Then add the following to the LocalSettings.php

$wgDynamicCategoryMapPath="extensions/DynaicCategoryMap"; require_once ("$wgDynamicCategoryMapPath/DynamicCategoryMap.php");