Environmental based backoffice alert message?
# help-with-umbraco
a
I've been asked the same question twice on the same day weirdly enough, but is there a way to display an alert/message within the backoffice which persists throughout the UI? For example, I have a staging and production environment where a non-technical end user may not instantly recognise the difference between the two backoffice's and unknowingly update content for the wrong site. Having some form of message on screen (at the bottom?) which says something like "You are on the live environment, any content changes you make will be visible to the public" would be a clear indicator for these levels of users. I'm not aware of a setting within the core which can do this, anybody know of a package perhaps which does something similar to this?
d
Hi Andy! There is a package (by Kevin Jump iirc) that can change the colourthemes in the backoffice. Perhaps a colortheme per instance could help distinguish them? https://marketplace.umbraco.com/package/our.umbraco.backofficethemes I don't know of any package to show persistent notifications, but I know that the notification for Umbraco updates is quite persistent, so perhaps there is something you can do with that?
k
yeah, if you wanted a 'notification' or a bar. then similar to how the back office themes work (theme loader does the work https://github.com/KevinJump/Our.Umbraco.BackOfficeThemes/blob/shared/main/Our.Umbraco.BackOfficeThemes/App_Plugins/BackOfficeThemes/themeloader.js) - but you might then need some additional javascript - you could go all angular, but in if you did some jquery or QueryById style javascript you could inject something near or around the main navbar that might persist.
a
Thank you so much @D_Inventor & @Kevin Jump! I forgot about the themes plugin. It may not be exactly what is needed, but could go some way to help certain users notice a key difference. I'll take a look at the themeloader.js at some stage though, cheers for the pointers!
13 Views