I need to display the search results after a user searches. The results weren't showing so I went looking and according to this Google Group discussion,
I needed to call the .dspBody()
function.
I added that function to my template like so,
#$.dspBody(body='', title='',summary='', crumbList=false, showMetaImage=false)#
and then the search results started showing up right where I called that function.
However, the problem is that the content of the page is displayed further down the template using,
#$.content('title')#
#$.content('body')#
and so on. Therefore calling .dspBody()
above where I want the search results to be results in the content being duplicated onto the page.
I reviewed the documentation for the function and didn't see an option for calling the functions without displaying the content.
Is there a way of calling .dspBody()
so that no content appears?