What do you need help with?

We are here and ready to help.

Containers Object

The containers object is a litst of public knowledge base containers . The containers that appear are based on the container you are in displayed in the URL.

https://support.supportbench.net/container/1005

If no container id is supplied, then the default root containers are retrieved within the list.

To itterate through each container, you would loop through similair to the below code.

 {% for container in sb.containers %}
 {{ container.name }}
 {% endfor %}

id

Returns the id of the container.

 

name

Returns the name of the container.

 

description

Returns the description of the container.

 

image

Returns the uploaded icon of the container.  i.e. /container/custom.png 

 

order

The saved order number of the container.

 

article_count

The article count of the container.  This count are the total number of articles within the container and its child containers.

 

articles

The top 10 ordered articles that are within the container.  

 {% for article in container.articles %}
 {{ article.title }}
 {% endfor %}

 

articles.id

Returns the article id.

 

articles.title

Return the title of the article.

 

articles.summary

Returns the summary of the article.

 

articles.likes

Returns the like count of the article.

 

articles.modified

Returns the last modifed date on the article.

 

articles.comments

Returns the comment count on the article.  These are the amount of comments this article has recieved from community users.

 

articles.order 

Returns the saves order number on the article.

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.