Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can you include a javascript resource on existing pages (create / edit page dialog) from a plugin?

Thomas Fritz June 21, 2011

Hi.

I want to write a plugin which adds an additional input field when creating or editing a page in confluence. As i have not found a way to do this in Java or via Configuration from within a plugin i thought i add a javascript which creates this HTML Element dynamically.

I think that has to be possible somehow as the AdHoc Workflow Plugin does it the "same" way, but i have not found any documenation or answers how to achieve this. Perhaps i am missing something!?

So my question is, how can i add a javascript file to the create / edit page dialog from my plugin? So when someone installs my plugin he gets an extra input field when he creates or updates a page.

Kind regards

Thomas

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2011

I believe you'll be wanting to create a plugin with one or more webresources bound to particular contexts in Confluence

See http://confluence.atlassian.com/display/CONFDEV/Web+Resource+Module#WebResourceModule-WebResourceContextsinConfluence

There is a context called 'page'

TAGS
AUG Leaders

Atlassian Community Events