List children pages of page parent and generate an output for a subpage menu

List children pages of page parent and generate an output for a subpage menu

Other relevant snippets: