Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > How Do you add a custom Field to the Message Board View modes: 
User avatar
Member
Member
carl.artz-agilethought - 2/16/2010 8:20:05 AM
   
How Do you add a custom Field to the Message Board
I am trying to add a custom field to the messag board, which will be a drop down. The drop down will be a way for the user to categorize the type of message they are leaving.

Could someone please provide me the steps necessary to do this?


Thank You,

Carl

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 2/16/2010 8:44:17 AM
   
RE:How Do you add a custom Field to the Message Board
Hi,

You need to add your custom field into Messaging_Message table and ensure that the "Messaging.Message" class (CMS_Class table) will be updated to use this custom field.

You can use following code to save the value to your MessageInfo object in code:

MessageInfo mi = new MessageInfo();
mi.SetValue("CustomField", value);

You need also to modify ~\CMSModules\MessageBoards\Controls\MessageBoard.ascx file according your needs, where you need to ensure your functionality.

Best regards,
Miroslav Remias.