Jump to content

Examples/Module: dplmatrix (example 1)

From DynamicPageList4 Manual
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

[edit source]

This uses the #dplmatrix module to create a matrix, whose name is set to "Title". The second, third, and fourth values are left blank so each one defaults: the second defaults to x (indicating a link), the third defaults to  ([blank], which indicates no link), and the forth defaults to normal (the matrix layout mode).

The fifth parameter specifies the indented list contents. First listed (non-indented, as row title) are article names as the source, and then the (indented) article names as the targets. From this, DPL4 determines which target is listed under which source. For example, the "apple" article appears in both the "one" and "Two" source sections of the indented list provided, so they are each marked with an "x" by DPL4 in the corresponding table column and row.

{{#dplmatrix: Title||||
one
 apple
 apricot
two ~~ Two
 banana
 apple
three
four
 grape
 mango ~~ MANGO
two ~~ Two
   mango ~~ MANGO
}}

Result

[edit source]
Title apple apricot banana grape MANGO
one x x      
Two         x
three          
four       x x
Cookies help us deliver our services. By using our services, you agree to our use of cookies.