Hello,
I have a page structure like this:
- Page A > Page AA > Page AAA
- Page B > Page BB > Page BBB
- Page C > Page CC > Page CCC
In Page AAA, I use the Velocity Macro to integrate the search bar. Here is the code I use:
#panelhiddenheader($services.localization.render('panels.search.title'))
{{html clean="false"}}
<form action="$xwiki.getURL('Main.Search')" class='xformInline'>
<div class="globalsearch input-group">
<label for="globalsearchinput" class="hidden">$services.localization.render('panels.search.query')</label>
<input id="globalsearchinput" class="globalsearchinput withTip useTitleAsTip" type="text" name="text" title="$services.localization.render('panels.search.inputText')" size="15"/>
<span class="input-group-btn buttonwrapper">
<button type="submit" class="btn btn-primary">
$services.icon.renderHTML('search')<span class="hidden">$services.localization.render('panels.search.submit')</span>
</button>
</span>
</div>
</form>
{{/html}}
#panelfooter()
My question: How can I modify this code so that the results presented are only those of Page A and its children (Page AA, Page AAA).
Thanks