To give some more information: macros {{children/}} and {{documentTree/}} are working but don’t fit our requirements.
We started with this code but this give us children with more than the first level:
{{toc start="2"/}}
{{html clean="false"}}
<style>
#xwikicontent>p {
columns: 3 auto;
}
#xwikicontent>ul {
columns: 3 auto;
width: 100%;
}
</style>
{{/html}}
{{velocity}}
#set ($children = $services.query.xwql("where doc.space like '$doc.getSpace().%' order by upper(doc.title)").execute())
#set ($first = '')
#set ($alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜß")
$children.size() Einträge
#foreach ($childRef in $children)
#set ($child = $xwiki.getDocument($childRef))
#set ($title = $child.getTitle())
#set ($childFirst = $title.substring(0,1).toUpperCase())
#if ($alphabet.indexOf($childFirst) == -1)
#set ($childFirst = '#')
#end
#if ($first != $childFirst)
#set ($first = $childFirst)
----
== $first ==
#end
[[$title>>$childRef]]
#end
#if (false)
{{documents location="$doc.getSpace()." count="50" actions="false" columns="doc.title"/}}
#end
{{/velocity}}
This gives us an index page with beginning-letter-toc but not only the children first level.
So we tried:
#set ($children = $doc.getChildren())
But this is as written in the first post not working on the pages we migrated with the api.
We use this api call with put:
/wikis/{wikiName}/spaces/{spaceName}[/spaces/{nestedSpaceName}]*/pages/{pageName}[?prettyNames={true,false}&objects={true,false}&class={true,false}&attachments={true,false}&minorRevision={true,false}]