Forums

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.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Forum threads