Forum

Thread tagged as: Question, Api

Dashboard widget list members

As per the end of this thread: https://forum.grabaperch.com/forum/06-11-2018-members-account-with-associated-file-uploads?page=2

How do you output a list of members in a dashboard widget and remove the widget from the UI sidebar?

Rob Saunders

Rob Saunders 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, you could list members in a dashboard widget. Not sure what you mean about the UI sidebar.

Could you describe how? Or point me towards the section in the documents that describes this?

With regards to the sidebar, in the docs here: https://docs.grabaperch.com/api/dashboard/ it states that:

$this->register_app('prefix_appname', 'App name', 1, 'App description', '1', false);

with regards to the false: Should the app show up in the admin menu – set to false for Widget only apps

I've set this to false and the app still shows up in the admin menu.

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

Could you describe how? Or point me towards the section in the documents that describes this?

You can use other app dashboard widgets as a reference.

Try something like this:


I've set this to false and the app still shows up in the admin menu.

I believe it's the other way around. Set it to true to hide it.

That was super helpful, thank you very much!

Changing to true doesn't seem to make any difference though.

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

Changing to true doesn't seem to make any difference though.

This is because you have already installed the app.

If you are using regular Perch, I think you have to rebuild the menu from Settings > Diagnostics > Add-ons.

If you are using Runway, you can go to the Menu Manager and hide it manually.