×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

Display more page data in search results

Thomas Walker

Thomas Walker Last update: Oct 16, 2017

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: 

#if ($searchResult.type == "page" || $searchResult.type == "blog_post") 
     $searchResult.object.renderContent(...) 
# else 
     < handle attachments, users, status updates > 
#end
2x2.9
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok