Preethi H R
Preethi H R

Reputation: 43

How to create a dialog box on click of a Web Item in Confluence?

I am new to developing plugins in Confluence. I have created a Plugin which is adding a Web-item “AAD Permissions” under Space permissions section of Confluence (attaching the screenshot for reference). Now, on click of that Web item I need to open a dialog box with an input. Can anyone please guide me on how to achieve this?

Screenshot

Thanks & Regards, Preethi H R

Upvotes: 0

Views: 312

Answers (1)

Andrii Maliuta
Andrii Maliuta

Reputation: 369

To have a Dialog item, you need to create:

  1. Web Item or section (seems you did it)
  2. Add AJS/AUI code or Struts Action to trigger Dialog

So you add either AJS JQuery based trigger now to the HTML tempate of this web item or create custom action on backend - https://developer.atlassian.com/server/confluence/adding-a-custom-action-to-confluence/

Here are guides:

Upvotes: 0

Related Questions