title: Pimcore - How to add custom button to object tree menu
body: <p>I would like to add a custom menu button to the object tree context menu of Pimcore 4.3.1, for example before the copy button:</p>
  
  <p><a href="https://i.stack.imgur.com/hF3vu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hF3vu.png" alt="Object tree context menu"></a></p>
  
  <p>I think the best solution would be a custom plugin:
  <a href="https://www.pimcore.org/docs/latest/Extending_Pimcore/Plugin_Developers_Guide/Plugin_Backend_UI.html" rel="nofollow noreferrer">https://www.pimcore.org/docs/latest/Extending_Pimcore/Plugin_Developers_Guide/Plugin_Backend_UI.html</a></p>
  
  <p>In the 'pimcoreReady' function of the plugin I am able to extend for example the main navigation and adding custom buttons... But I can't find anything about extending the object tree... </p>
  
  <p>I already looked at <em>/pimcore/static/js/pimcore/object/tree.js</em> where the original menu is created, but can'f find anything useful.</p>