nextcloud / welcome

Welcome widget in Nextcloud's dashboard
GNU Affero General Public License v3.0
17 stars 11 forks source link

Force as dashboard default widget #12

Closed spreeni151 closed 1 year ago

spreeni151 commented 3 years ago

Hi, the readme.md says:

**Dashboard layout**
Once the app is installed, if you want the Welcome widget to be displayed by default on new users dashboard, change the default dashboard layout:
occ config:app:set dashboard layout --value=welcome,recommendations,spreed,mail,calendar

This is exactly what I am looking for, unfortunately this point is not working. Is this a parameter of the actual dashboard app or maybe a feasture of the upcoming NC 21 version? ATM I'm using NC 20.8.1 and the welcome app is not shown as default widget of new users, nevertheless I use the OCC comand, which is written correctly in database (I checked it with occ config:app:get dashboard layout). Greetings

julien-nc commented 3 years ago

Hi,

I didn't realize the dashboard layout app config value is not used as default for users in NC 20. Too bad.

We've got 2 options:

  1. bump welcome's min compatible NC version to 21
  2. ask dashboard developers to backport this default config merging in Nextcloud server's stable20 branch

I don't have time to make a move on that these days. If you prefer 2. then you can either create an issue in the server's repo or create a PR yourself by checking out stable20 branch and applying the necessary changes so it looks like the master branch. Then the PR should have stable20 as target branch.

Everything happens in these 2 lines: https://github.com/nextcloud/server/blob/8a474305fad01db45ec265c5cfcc25ba9a51ec76/apps/dashboard/lib/Controller/DashboardController.php#L102-L103

spreeni151 commented 3 years ago

Thank you @eneiluj for your explanation. Adding 'welcome' to the dashboardcontroller.php file as you described was the trick. :-) Now it's working in my NC20 System and uses the welcome widget as default of new users. Thanks for your help and have nice day!