What is the template for customizing the Users Directory


(Zaino) #1

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


(Taylor) #2

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

Desktop
discourse/users.hbs at f9648de8972dea4661e75b3f25bfeb1535e9c6c4 · discourse/discourse · GitHub
discourse/directory-item.hbs at acd1693dac1bff6ff50250d942134bc48a27ff14 · discourse/discourse · GitHub

Mobile
discourse/directory-item.hbs at acd1693dac1bff6ff50250d942134bc48a27ff14 · discourse/discourse · GitHub


(Zaino) #3

mille grazie!!!