Thread:Project:Support desk/CategoryTree Question

Hi folks,

Initially, my menu item is in the form of category tree and by pasting { { #categorytree:Foo|hideroot|mode=pages } } into mediawiki will auto populate the tree. That means that if I add into an article, this article will auto appear under the categorytree.

However, right now, I have changed my menu item to the form of sidebar menu (refer to link http://postimg.org/image/60c1bkwpj/). I've "hard coded" all the menu items in my .php file (Refer to link http://codepaste.net/iazbzy).

I would like to ask is it possible to auto add a menu item into my current implemented sidebar when a new article is tagged with. As much as possible, I would like to cut down the manual way of adding a new menu item by editing the .php file. Is there a php way similar to { { #categorytree:Foo|hideroot|mode=pages } }?

I'm not even sure if I am asking a legit question.

Thanks all for the assistance and advises!