Wiki/mediawiki/extensions/subPageList3

From Adam Meola - wiki
Jump to navigation Jump to search

Full documentation from the author(s) available at: https://www.mediawiki.org/wiki/Extension:SubPageList3


How I Use It

I use subPageList3 in 2 ways.

Note: The below assumes you've installed the plugin.

Note2: The code shown below is "wikitext", the markup language that wiki uses.

1) To list all of the children of a given page:
<code> <splist parent=[PageYouWantHere] showparent=no sort=asc sortby=title liststyle=unordered showpath=no kidsonly=no debug=0 /> </code>


2) To list all of the children the page you're editing:
<code> <splist showparent=no sort=asc sortby=title liststyle=unordered showpath=no kidsonly=no debug=0 /> </code>


As you can see the "parent" attribute can be omitted, when the page you'd like the list to appear on is the same as the page that you'd like to list the children of.


The Problem

It seems that the HTML of this list is generated at the time when the page is saved.

This is great from a performance perspective, since the web site won't need to generate these on the fly every time there's a request!

...However...

if you have:

Parent > child > grand child, and then you decide to add a GREAT grand child.

Parent, child, and grand child will not have any of their lists updated until they're saved again.

1) Click "Edit Source"
2) Scroll down
3) Click "Save changes"