myItemsOnly Dashlet Settings

Hello,

I’m trying to change a specific dashlet so it isn’t showing "My … "

I’ve found in DashletGeneric.php changing line 88 helps (universally);
public $myItemsOnly = false;

But I’m struggling to then apply this change to a single Dashlet.

Any ideas?

Thanks, Mike

I think you don’t need to go into code for this, the Dashlet properties normally have a checkbox where you can toggle “My items”.

Hey pgr

Sorry, I should have clarified, I’m looking to do it in the code so that I don’t have to update each staff members home individually.

Thanks, Mike

One way to do that is to go through every relevant row in user_preferences and change the settings (which are just Base64-encoded JSON).

1 Like

Ah yes that’s quite an effective method indeed.
Now all I need is little script that runs frequently to copy the database value from my account to all the users.