Forum group webpart

prajwal kumar asked on March 1, 2016 10:53

How to add a custom field on forum group webpart.A user can reply to forum post by clicking on the "reply" link.I want to add a new field to that form.Please let me know how to add a new field to that Reply Form, also where can i edit that form ?

Recent Answers


Trevor Fayas answered on March 1, 2016 14:51

First step, you never want to modify Kentico's existing items. Make sure to CLONE the web part first (Files and object).

Next, on the cloned object in the Web Parts module, go to the "Fields" tab and add your field.

Then, modify the cloned ASCX webpart file to do the logic you need to.

https://docs.kentico.com/display/K9/Customizing+web+parts

https://docs.kentico.com/display/K9/Developing+web+parts

1 votesVote for this answer Mark as a Correct answer

prajwal kumar answered on March 1, 2016 16:05 (last edited on March 1, 2016 16:11)

In the forum group webpart ,i am not able to get the code of the form. I want to add a new field to the form which gets displayed when i click "reply" link . This form is integrated with "forum group" webpart. I dont want to add a field to forum,i want to add a field to a form which gets displayed when we click on "Reply" link. I am not able to get the code where i can edit this form which is integrated in "forum group" webpart.

I am using kentico 8.2

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on March 1, 2016 18:12

Clone all of the webparts that would be involved then, and make your customizations where needed. If there is an embedded control from cmsmodules, then clone that control and make your customizations to the cloned control, then change the path on your other cloned control to match your newly created webpart.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 2, 2016 05:43

First you'd start by looking in the Forums module and adding a field there to the forum post class.

Secondly you'd look at the documentation about the layout of the forum. This has the needed pieces on it you may or may not need to customize for your particular forum. I believe the one you will be customizing will be the Thread.ascx* files.

1 votesVote for this answer Mark as a Correct answer

prajwal kumar answered on March 2, 2016 10:26 (last edited on March 2, 2016 10:31)

I want to know how can i add new fields into the forum post class ? In the code behind? Can you please show me a code snippet to do it.Actually i need the field to be added to the form which gets displayed in the forum group webpart ,when i click on "Reply" link.

Please give me a breakthrough as i am stuck on this.I want to add a textbox into that Reply form. Please let me know a solution.

0 votesVote for this answer Mark as a Correct answer

prajwal kumar answered on March 3, 2016 08:54

I tried to add a new field into the forum post class,but I dont have the access to it.I am getting this message showing "Properties on the General Tab cannot be modified in installed modules .The other tabs remain customizable".When i clicked on the Classes i am getting this message "Classes cannot be created or deleted in installed modules".Please let me know how to add a field to the class ? .Do we have any other solution to this ?

0 votesVote for this answer Mark as a Correct answer

prajwal kumar answered on March 7, 2016 12:53

We wont have the permission to edit the "Forum Post" class.Please let me know if there is any other way to do this.

0 votesVote for this answer Mark as a Correct answer

prajwal kumar answered on March 10, 2016 15:37

Hi Everyone,

To edit the "reply" form of the forum or to add a new field to that form which is inside the forum. We need to edit "NewPost.ascx" but once we add a field to this file , to map it we need to add a field to "ForumPostInfo" class. But its a built in dll, so Please let me know how i can move forward? It will be a great help.

Regards, PRAJWAL

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 18, 2016 22:40

If you haven't already figured this out, there is a way to do this without needing to map any of it. You can simply do something like forumInfoObject.SetValue("ColumnName", objectValue) in the reply button event.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.