DynamicPageList Demo: Difference between revisions

From KBwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The QNET-CFD is powered by [http://www.mediawiki.org/wiki/MediaWiki MediaWiki].
The QNET-CFD is powered by [http://www.mediawiki.org/wiki/MediaWiki MediaWiki].
This has been extended with [http://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) DynamicPageList].
It has been extended with [http://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) DynamicPageList].
DynamicsPageList is used to dynamically extend the navigation tree.
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' or sub branches of 'Underlying Flow Regimes' (UFR).
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).


[[Image:SemaDemoNavtree.png|centre|thumb|430px|Figure 1: Navigation tree with dynamic page list extension]]
[[Image:SemaDemoNavtree.png|centre|thumb|430px|Figure 1: Navigation tree with dynamic page list extension]]


Figure 1 shows the result of the dynamics page list extension when the mopuse pointer id on 'Underlying Flow Regimes'-'Flow Around Bodies'. The seven extra boxes, representing UFRs,  are generated dynamically.  
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.  


For this process to work the [[NavTree]] need to include some extra commands.
This process works if the [[NavTree]] includes some extra commands.  
The test <nowiki>{{ ... }}</nowiki> on the source page of [[NavTree]] represets the dynamic page list extension.
In the example below all entrees which belong to the category 'Flow Around Bodies' are added to the navigation tree.
In the example below all entrees which belong to the category 'Flow Around Bodies' are added to the nvigation tree.  
The entry in curly brackets (<nowiki>{{ ... }}</nowiki>) represents the dynamic page list extension.


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


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

Revision as of 10:34, 28 August 2009

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.