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: 3 comments 11 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.
-
|
Thanks a lot for the suggestion, @JammingBen. If I may, I'd like to remind You of one of the goals of OpenCloud: Do one thing, and do it good. In my understanding that is File Sharing, see e.g. https://github.com/orgs/opencloud-eu/discussions/262#discussioncomment-12330165. Therefore, I'd recommend to make the Calendar functionality disable-able. See, there are plenty of good caldav implementations out there, which can be easily hosted (Radicale, Baikal, etc.). Users can easily maintain this outside of OpenCloud. The installation / operation is a lot more easy than OpenCloud. (I've been running Baikal since 2012 on a Raspberry PI). If one applies the solution suggested, that adds a hurdle to any version upgrade. Because, the changes maintained outside of the container may negatively impact any future change and users will be needed to cross-verify the other changes to the .css / .json mentioned here. Please consider for a configuration option to enable / disable calendar. Even not having enabled Radicale in .env, should be sufficient. |
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…