5

Greetings,

Is is possible to dictate where your plugin GUI elements get placed on the bug display form? It seems to append them at the end of all the other elements in a given section.

We are adding a new drop-down menu that affects what projects a user can select, so it would be nice if we could put it before the existing project menu. Thank you for any help or advice you can provide.

Fog Creek Case FC1923207

flag

1 Answer

2

Yes, the current policy is to append any fields that are added by plugins. If you want to get these in before the FogBugz fields, you would have to write some Javascript (jQuery is available on all FogBugz pages) to move things around after the page is sent down, which means going off of the documented API grid a little bit. We hope to support this kind of UI interleaving better in the future, but it is not one of our short-term goals for the Plugin API right now.

e.g. if your html is all in a div with id "myplugin_movetobottom", you could try this:

$("div#myplugin_movetobottom").appendTo("div.bugFields > div.plugins.edit > div.dialog.dialog-bugedit");
link|flag
Sounds good. I just wanted to make sure there wasn't any alternative before I went ahead with the JS approach. Thank you. – Matt Huotari Mar 12 2010 at 15:07

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.