Forum threads

The threads are represented by the Telerik.Sitefinity.Forums.Model.ForumThread class. It exposes the following specific properties:

  • FirstPostId
    Gets or sets the ID of the first post in the thread.
  • Forum
    Gets or sets the forum that the thread belongs to.
  • IsLocked
    Specifies whether the thread is locked. If the thread is locked, the users are unable to post in it.
  • IsMarkedSpam
    Specifies whether the thread is marked as spam.
  • IsPublished
    Specifies whether the thread is published. Only published threads are visible in the UI.
  • LastPostDate
    Gets or sets the date of the last post that has been submitted in the thread.
  • LastPostId
    Gets or sets the ID of the last post that has been submitted in the thread.
  • LastPostUserId
    Gets or sets the ID of the last user that has posted in the thread.
  • LastPostUserName
    Gets or sets the  username of the last user that has posted in the thread.
  • OriginalForum
    Gets or sets the original forum of the thread. This property is used to keep track of the original forum in case the thread has been moved to another forum.
  • PostsCount
    Gets or sets the count of the posts in the thread.
  • ThreadType
    Gets or sets the type of the thread. This property is of type Telerik.Sitefinity.Forums.Model.ThreadType. The enumeration has the following values:
    • Normal
      Normal threads should appear bellow any other thread types.
    • StickOnTop
      These threads should be always positioned on top of the normal threads.
    • Announcement
      These are threads appearing above stick on top and normal threads.
  • Title
    Gets or sets the title of the thread.
  • ViewsCount
    Gets or sets the total amount of views of the thread.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Forum posts