Kentico 10 - Modal Web Part

Jay Crowe asked on December 13, 2018 11:57

Hi,

I am looking for a web part that I can use on my site which will give a me a modal popup?

I need something similar to the following link but this seems to be for an older version of Kentico: https://devnet.kentico.com/articles/display-content-in-a-modal-window

Thanks, Jay

Recent Answers


Brenden Kehren answered on December 13, 2018 14:24

Even though that article is for v7, the idea is still valid. Currently there is no webpart for a modal window mainly because it requires 2 different html elements, usually in 2 totally different and very specific locations. So not the easiest thing to do.

What we typically do is create a button with a JavaScript click event handler. Place that button in an editable text area or a static text area. Then add a static text web part to the template which contains your modal-dialog panel and content.

0 votesVote for this answer Mark as a Correct answer

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