What do you need help with?

We are here and ready to help.

Search Object

The forums object is a list of search results. The search text is loaded by the text in the URL.

https://support.supportbench.net/search/Search+Text/

If no search is supplied, then the object will be null.

To retrive the search results, you can access it by calling it directly within a tag.

{% for result in sb.search.results %}
 {{ result.title }}
{% endfor %}

 

type

Returns the type of search that is being performed.

0 = Knowledge base
1 = Forums

 

showing_count

Returns how many results are being displayed.

 

result_count

Returns the amount of results available.

 

results

Returns a list of search result items sorted by relevancy. 

 

results.id

Returns the id of the result.  Either a topic id or article id.

 

results.title

Returns the title of the result.

 

results.summary

Returns the summary of the result.

 

results.post_count

Returns the amount of posts within this topic or comments within the article. 

 

results.modified

Returns the last modified date of the result.

 

results.resolved

Returns wether the topic has been resolved.

 

results.like_count

Returns the amount of like the knowledge base article has recieved. 

 

Facebook Share Tweet

Was this article helpfu?

Yes No

Thank you for voting

×
Select company

You are related to multiple companies. Please select the company you wish to login as.