Remove the “Calendar” menu item #1769
-
|
Hi everyone, How to remove the “Calendar” menu item from the main menu (not from the admin panel)? Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
There is no config to hide the menu item. You could make it work with some custom CSS and simply hide the menu item. See https://docs.opencloud.eu/docs/dev/web/getting-started#styles and https://github.com/orgs/opencloud-eu/discussions/1726#discussioncomment-14869658 for details on how to add a custom CSS file. Your CSS would need to look like so: |
Beta Was this translation helpful? Give feedback.
-
|
I also additionally hide drawio and texteditor because users often click and create empty files) /opt/opencloud-compose/docker-compose.yml /opt/opencloud-compose/.env /srv/opencloud-apps/external-sites/css/hide-calendar.css /srv/opencloud-config/web-config.json |
Beta Was this translation helpful? Give feedback.
Adding styles like described in https://docs.opencloud.eu/docs/dev/web/getting-started/#styles is supposed to be done in the general web config, not in an app config. It would need to look something like this: https://github.com/opencloud-eu/web/blob/stable-4.2/dev/docker/opencloud.web.config.json (with the URLs adjusted and the added style of course). Then you can use the
WEB_UI_CONFIG_FILEenv var to specify a path to where this config file is located.You should be able to place the CSS file inside a plugin folder, yes. Just reference it in the global web config like descr…