From http://processwire.com/talk/topic/1384-automatically-generating-sub-page/