There have been a few requests for this. We will investigate whether this is possible and how it would interact with the single page application which powers the control panel.
Agree, this would be really useful.
It could be under the branding section in the control panel, just a field box to insert custom code in header or footer. As long as the code is something that is expected to run sitewide then I don't see why being a SPA would be an issue.
For me, this would be ideal. I presume the concept of plugins/addons is far away from being integrated, but this idea of being able to inject my own JavaScript code would help me solve a lot of 'issues' for my clients.
In terms of support this is also something I would love to see on enhance. I need to load my gleap.io support widget in the dashboard to help my clients.
I highly recommend you take a look at Gleap.io for your own business.
Just in case anyone is looking for a temporary solution, you may edit the following file and add in your custom code:
/var/www/control-panel/ui/index.html
I imagine this will be overwritten when you update the panel.
ss88us I can confirm this is the case. Please bear in mind that any edits you make will also impact any Resellers.
ss88us Very nice! Thank you for sharing this.
Aliysa_Enhance Thanks for mentioning that because we won't be doing support for client's resellers and they would not like to see our widget.
@ss88us Aliysa_Enhance After the update to 8.2 just now, it seems the directory path /var/www/control-panel/ui/index.html is no more. Can you help me find out the new path? Thank you.
Adrien That's not good!
Mine is still there. I've just modified it too with my new code, and it's working as normal. It could be part of a bigger issue. Can you still access the control panel?
ss88us Yes i can. This is indeed very strange.
ss88us I need some sleep... I was in the wrong server ;-) Thank you for your quick help.
Adrien
cat /var/www/control-panel/ui/index.html