Timothy Chen schreef:
One of the problem I have now is that I want to change the order of topics in each article depending on the user who views it.
Since each article represents a network device, and each topic represents a network problem, I want to sort the problems depending on the user network device background information and user input device background information.
I don't know if this sounds too vague, or I'm even at the right place to ask this.
But I wonder if you guys can give me a direction where to start looking about adding this type of logic?
Let me know if I should ask this somewhere else!
First off, you should install the ParserFunctions extension [1] and the Variables extension [2]. The latter is actually intended as a demo for extension writing, but implements the {{CURRENTUSER}} magic word that you'll need.
Second, you want to split your stuff into subpages. So if you have an article called "Example router", every problem will be a subpage ("Example router/Problem 1", "Example router/Problem 2", etc.). The "Example router" page will be no more than a series of inclusions, like:
{{/Problem 1}}
{{/Problem 2}}
etc.
To sort this stuff dynamically, you'll need to write some smartness using ParserFunctions. Maybe StringFunctions [3] could come in handy as well.
Roan Kattouw (Catrope)
[1] http://www.mediawiki.org/wiki/Extension:ParserFunctions [2] http://www.mediawiki.org/wiki/Extension:Variables [3] http://www.mediawiki.org/wiki/Extension:StringFunctions