What is the template for customizing the Users Directory

I have searched for quite a long time, so forgive me if this is already answered somewhere else.

I want to customize the template that displays the User Directory ( /u or Users from hamburger menu).

I am working on my own theme and I am getting the hang of using the plugin-outlet script when I know which template I want to modify.

Specifically, for /u I want to, in order of priority:

  1. Remove/hide the tables for Received, Given, Topics, Replies, Viewed, Read, Visits
  2. Insert custom fields from the user profile

Can someone give me some guidance on where in the code to get started with this?

Cheers

1 Like

Here are the templates you’ll need to get started:

Desktop
https://github.com/discourse/discourse/blob/f9648de8972dea4661e75b3f25bfeb1535e9c6c4/app/assets/javascripts/discourse/templates/users.hbs
https://github.com/discourse/discourse/blob/acd1693dac1bff6ff50250d942134bc48a27ff14/app/assets/javascripts/discourse/templates/components/directory-item.hbs

Mobile
https://github.com/discourse/discourse/blob/acd1693dac1bff6ff50250d942134bc48a27ff14/app/assets/javascripts/discourse/templates/mobile/components/directory-item.hbs

4 Likes

mille grazie!!!

1 Like