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

  • AllowAttachments
    Specifies whether the users are allowed to add attachments to their posts. For more information, read the For developers: Forum Posts section.
  • AttachmentsRequiredRole
    Gets or sets the role that the user must be in in order to add attachments. For more information, read the For developers: Roles API section.
  • Group
    Gets or sets the group that the forum belongs to.
  • LastPostDate
    Gets or sets the date of the last post in the forum.
  • LastPostId
    Gets or sets the ID of the last post that has been submitted in the forum.
  • LastPostUserId
    Gets or sets the ID of the last user that has posted in the forum.
  • LastPostUserName
    Gets or sets the username of the last user that has posted in the forum.
  • LastThreadId
    Gets or sets the ID of the last thread that has been added to the forum.
  • Ordinal
    Gets or sets the ordinal of the forum. The ordinal is used to order the forums in the UI.
  • PostsCount
    Gets or sets the count of the posts in  the forum.
  • ThreadsCount
    Gets or sets the count of the threads in the forum.
  • Title
    Gets or sets the title of the forum.

Forum libraries

Each forum can be associated with a documents library. The library is created upon the first request for it. For more information, see For developers: Get the forum library.

The library is used to store the attachments of the posts submitted in the forum. It is of type DocumentLibrary and you can store any types of files in it.

The difference between this library and a manually created library is that the forum library uses a download security provider of type AttachmentDownloadSecurityProvider. This provider uses the forums security instead the default libraries security, to determine whether the attachment can be downloaded.

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

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. 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 threads