What do you need help with?

We are here and ready to help.

Topic Object

The topic object returns the loaded forum topic. The topic id is loaded by the id in the URL.

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

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

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

{{ sb.topic.id }}

id

Returns the id of the topic.

 

status_id

Returns the status id of the post.  0 = resolved, else returns the case status id.

 

solution_id

Returns the solution activity id.  This is the choosen activity id which is the solution to the forum thread.

 

vote_count

Returns the number of votes for topic posts that this forum has recieved.

 

forum_id

Returns the forum id of the topic.

 

forum_best_answer

Returns wether this forum is to use the best answer flag to resolve this forum.  Returns true or false.

 

forum_allow_anonymous

Returns wether this forum is allows anonymous posts.  Returns true or false.

 

posts

Returns a list of posts within this topic.

 

posts.id

Returns the id of the post.

 

posts.title

Returns the title of the post.

 

posts.content

Returns the user who posted this post.

 

posts.posted_by

Returns the user who posted this post.

 

posts.posted_on

Returns the date of when the post was made.

 

posts.avatar

Returns the avatar path of the user who create this post.

 

posts.attachments

Returns a list of attachments for this post.

 

attachments.name

Returns the attachment name.

 

attachments.path

Returns the attachment path.

 

attachments.size

Returns the attachment size in bytes.

 

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.