Kentico MVC

Mirado Francky Randria asked on May 17, 2019 13:09

Hello every one,

I am implementing some functionalities of the portal engine version of kentico CMS to the MVC version of it.

One of them are the CHAT webpart

So far I have already managed to implement the basic things like :

Creating chat room as an anonymous user,
sending and get messages.

My problem now is the when I log in as a Real user( not anonymous ) the chat wont work anymore.

Did someone already try to implement Kentico's Portal engine webpart to MVC ?

Could you help me with this matter ?

Correct Answer

Brenden Kehren answered on May 17, 2019 19:02

There are 2 aspects of Kentico Chat:

  • public facing client "support" chat (A public user chatting with a Kentico user logged into the Kentico Admin interface)
  • private internal chat (A Kentico logged in user in the Kentico Admin chatting with another Kentico logged in user in the Kentico Admin)

Which one are you using?

Secondly, MVC and Portal Widgets/Webparts don't mix. So if you're using straight MVC, you'd need to implement the Chat functionality manually, from scratch in MVC.

1 votesVote for this answer Unmark Correct answer

Recent Answers


David te Kloese answered on May 17, 2019 16:24

So do you get any error?

You mean logged in on the front (MVC) part of your site? Or in the admin interface?

Do you check in your code if their is a currently logged on user?

1 votesVote for this answer Mark as a Correct answer

Mirado Francky Randria answered on May 18, 2019 08:05

Hi again ,

First, I am implementing the Support Chat aspect ( Public facing client ) so the client may or may not Log in to use the chat feature :

Not logged user : the user send chat message as a Guest User ( Perfectly work till now )

Logged User : The User log in the MVC application an I use that Logged User for the Chat. I've already checked if the User are logged in the server code (C#) and in the Client (JS) and it is logged BUT then the chat feature does not work, yet the CHAT room is created.

Secondly, I understand that Portal Widgets/Webpart and MVC don't mix, but the logic/algorithm behind should be similar I think. I've implemented the chat functionality from scratch in MVC but my code are based on the code of the portal Engine because I have to stick to Kentico's Logic(Yet I may not Understand it very well) so can you help me with that ?

Thanks for your attention guys,

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 18, 2019 14:41

There are many pieces and files which are part I'd chat in the file system. I'd suggest digging through them. You can find most of them in the /CMSModules/Chat directory.

0 votesVote for this answer Mark as a Correct answer

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