Modifying the search bar to show only the results of a page

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”}}


$services.localization.render(‘panels.search.query’)



$services.icon.renderHTML(‘search’)$services.localization.render(‘panels.search.submit’)




{{/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 :slight_smile: