My goal is to add an element (button or link) to the top bar so that it would be visible on any page within SuiteCRM for logged-in users. This element would hold an onClick() to open a popup. The popup holds certain data that should be accessible on any page.
I would like to do this in a completely upgrade-safe way. I know I could just customize the template files and be done with it, but then I’d need to keep track of and apply future updates to the template file. I’m trying to avoid this, so is it possible to add buttons to the top bar in another way similar to vardefs or Menu.php in modules?
So far I’ve tried doing this with JS using by a couple of methods (insertAdjacentHTML is my latest tool) fired by an application logic hook in either after_ui_frame or after_ui_footer, but apparently it still gets overridden as the pageload advances. I guess I could play with CSS using negative margins and flots, but I’m hoping to find a more elegant solution.
Any ideas or pointers?