DynamicPageList Demo

From KBwiki
Revision as of 10:38, 28 August 2009 by Niek.verhoeven (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The QNET-CFD is powered by MediaWiki. It has been extended with DynamicPageList. This is used to dynamically extend the navigation tree. Its effect can be seen by moving the mouse pointer on the navigation tree sub branches of 'Application Areas' (AC) or sub branches of 'Underlying Flow Regimes' (UFR).

Figure 1: Navigation tree with dynamic page list extension

Figure 1 shows the result of the dynamics page list extension when the mouse pointer is on 'Underlying Flow Regimes'-'Flow Around Bodies'. The seven extra boxes, representing UFRs, are generated dynamically.

This process works if the NavTree includes some extra commands. In the example below all entrees which belong to the category 'Flow Around Bodies' are added to the navigation tree. The entry in curly brackets ({{ ... }}) represents the dynamic page list extension.

NavTree source:

 ...
 **[[Flows_Around_Bodies|Flows Around Bodies]]
 {{#dpl:category=Flows Around Bodies|format=,***,[[%TITLE%]]\n,}}
 **[[Semi-confined_Flows|Semi-confined Flows]]
 ...
 

A further requirement is that all neccessary pages which logically are 'Flow Around Bodies' require the text [[Category:Flow Around Bodies]] on their source pages.