Cause menu changes to take place without nuking

Using openemr docker development-easy-light based off of openemr docker image : openemr/openemr:flex-3.22,

I want toupdate the menu options available for front desk user role. Currently, the way I know how to do this, is to edit openemr/interface/main/tabs/menu and then edit or remove the unwanted options from the json file front_office.json

These changes wont take effect untill I run a docker-compose down -v and then docker compose up -d. This is a problem cause then I lose all configurations and testing data / forms I have set up and its annoying and tedious to redo all those each time. Is there a way to force the regeneration of the menu from that template without removing all volumes the way I am describing?

Thank you!

SO I found it out! basically use the “docker exec -it” method into the openemr container, navigate to “openemr/interface/main/tabs/menu/menus” find the json, edit it with vim, refresh the page and good to go

1 Like

You could also create a module that manipulates the menus when it loads but doesn’t do anything else, make menu changes based on the ACL settings of the user logged in. It works pretty slick but takes being familiar with the bootstraps in the modules - and the menus and manipulating them with the event dispatcher - so you do it once and don’t have to edit the json. If you’re curious I think there are examples in some of the existing modules