Skip to main content
Skip table of contents

Display more page data in search results

If your search result represents a page or a blogpost then $searchResult.object is a Page placeholder. The search result types are defined here.

For example, you would need something like this: 

CODE
#if ($searchResult.type == "page" || $searchResult.type == "blog_post") 
     $searchResult.object.renderContent(...) 
# else 
     < handle attachments, users, status updates > 
#end
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.