I want to get only direct childs (not all descendants) with the livetable of a given space.
What I have tried without success was:
‘extraParams’ : “&parent=NameOfSpaceToSearch”
‘extraParams’ : “&space=$escapetool.url(MySpaceName’)”
‘extraParams’ : “&space=${doc.space}”
My code is like this:
{{velocity}}
#set($collist = [‘doc.space’, ‘doc.creationDate’, ‘doc.date’, ‘doc.author’])
#set($colprops = {
‘doc.space’ : { ‘type’ : ‘text’, ‘link’ : ‘space’, “size” : 120 },
‘doc.creationDate’ : { ‘type’ : ‘date’ },
‘doc.date’ : { ‘type’ : ‘date’ },
‘doc.author’ : { ‘type’ : ‘text’, ‘link’ : ‘author’ }
})
#set($options = {
‘translationPrefix’ : ‘xe.index.’,
‘rowCount’ : 50,
‘extraParams’ : “&location=$escapetool.url(‘NameOfSpaceToSearch.StartingStringOfChild’)”,
‘description’ : ‘This table lists all the documents found on this wiki. The columns can be sorted and some can be filtered.’
})
#if(!$isGuest)
#set($discard = $collist.add(’_actions’))
#set($discard = $colprops.put(’_actions’, { ‘actions’ : [‘rights’] }))
#end
#livetable(‘alldocs’ $collist $colprops $options)
{{/velocity}}
It would be nice if someone could help me.