Tuesday, September 18, 2012

Categorize discussion Forum threads in SharePoint Or Create folder in discussion forum


Creating folders feature is not available in discussion forum list using OOTB. But this can be achieved using custom coding but quite complex. Let us see the workaround for same in OOTB. Actually the discussion forum is uses two different content types (discussion and message). The discussion content type is derived from Folder content type and the message content type is derived from Item content type.  The folder content type is represented in different way through Discussion of course you cannot see the folder image but it works as folder. So the discussion forum simply not allows user to create folders, but the discussion threads and its replies can be categorized using  some trick.
As I said before when there are two content type are used in discussion forum and the mapping is done internally in discussion forum template. If user creates a new discussion thread, by default it uses “Discussion” Content type thereafter it starts using the “Message” content type. To categorize the discussion threads try below trick.

1.       Create a discussion forum list.
2.       Add an additional column “Category”

3.       Navigate to List setting of discussion forum list
4.       Open the Discussion content type and make sure the newly created “Category” fields is available.
 
5.       Open the Message content type and click on the “Category” field.

6.       Click on the Remove button to delete the field from Message content type.


7.       Make sure that field “Category” is available only in Discussion” content type.
8.       Create new threads and pass category value.
9.       Add a reply to the existing thread and make sure that the category filed is not shown.

10.  Modify the default view and apply group by on Category field.
11.  Navigate the discussion forum home page and check is that what is expected.


Enjoy learning SharePoint :-)

10 comments:

  1. The solution is really helpful. Thanks

    ReplyDelete
  2. Could you tell if there are the same solution for SP 2013.
    I've encountered a problem applying that to SP 2013.
    How to make a default view to group by category?
    Thank you.

    ReplyDelete
  3. Hi, I have applied this in SP 2013, but when you click on a discussion thread, you can't seem to Reply to it any longer

    ReplyDelete
  4. Very nice post here thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    https://bit.ly/2TADKgt

    ReplyDelete
  5. This is a very nice one and gives in-depth information. I am really happy with the quality and presentation of the article. I’d really like to appreciate the efforts you get with writing this post. Thanks for sharing

    Azure Training in pune

    ReplyDelete
  6. elza energy App was released in November 2021, but there is no information available about the application's identity or its owner. As a result, individuals are uncertain whether the app is a legitimate source of passive income using mobile devices or a fraudulent scheme.

    ReplyDelete
  7. Pepperboy embarked on his music journey, in 2010 when he officially launched his music career with the release of his debut album titled “In Due Time.”

    ReplyDelete