[$page.pagetitle]
[data var=$mainpage tool=pages func=one arg_1=('page', 'by parentid 0', 'order ord') arg_2=()] [data var=$pages tool=pages func=tree arg_1=('page', 'branch id', 'order ord') arg_2=('id' => $mainpage.id)] [inhead] [/inhead]
[for from=$pages.lines item=ipage i=i]
[$ipage.title] [subtree]
[/for]

[$page.h1]

[$page.content]