#if ($childRel.to.title)
#end
#fragmentContentForDoc($childRel.to)
#foreach ($grandchildRel in $childRel.to.getChildRelations($publicOnly))
#if ($grandchildRel.to.title)
$grandchildRel.to.title
#if ($grandchildRel.to.hasChildren($publicOnly))
#else
#end
#end
#fragmentContentForDoc($grandchildRel.to)
#end ## foreach grandchildren
#end ## foreach children
#else ## fragment is null