Kentico mvc widget does not displaying current view html

Muhammad Kaleem asked on March 8, 2019 06:54

i have created a widget by copy the HeroImageWidget (that is default widget in dancinggoat sample project), my new widget does not use its own patrial view its use the view of heroimagewidget, i give full path of partial view as "return PartialView("~/Views/Shared/Widgets/_TextWithLeftImage.cshtml",model)"; but its not follow its own partial view

Recent Answers


Prasanth Joseph answered on March 8, 2019 12:22

Hi Muhammad,

Are you sure that the correct controller is invoked when widget is added ? You can check this by debugging .

When a widget is added the widget identifier is mapped to widget based on the class mentioned in the registered attribute. Please make sure it is correct one.

Thanks,

Prasanth M

1 votesVote for this answer Mark as a Correct answer

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