Possibilità di evidenziare i gruppi nella pagina Chi siamo

Penso che sarebbe bello poter mettere in evidenza alcuni gruppi nella pagina “Chi siamo”.

Potrebbe essere utilizzato per includere gruppi associati al forum, ad esempio un gruppo “Mentori” (o “Assistenti del Forum”). Potrebbero essere elencati anche altri gruppi, come i membri dei prodotti principali (ad esempio, in un forum di programmazione, i membri del team principale di progetti specifici strettamente correlati al forum; molti di questi avranno spesso lo status TL4, che consente loro di fissare discussioni, modificare post, pubblicare notizie nelle loro sezioni dedicate, ecc.).

Inoltre, strettamente correlato a ciò, lo status TL4 potrebbe effettivamente essere utilizzato come punto di partenza per i Moderatori delle Categorie (e quindi anche come un gruppo degno di essere incluso nella pagina “Chi siamo”).

13 Mi Piace

Instead of some hardcore feature where there is a magic flag on every group and this is database driven, I would far prefer we just sprinkle an outlet or 2 on the about.hbs file and you solve this with a theme component.

At the moment I see no outlets on discourse/app/assets/javascripts/discourse/templates/about.hbs at ead6600f4b175b95b2028e3e0b8f7b7ede9b84e4 · discourse/discourse · GitHub

Can you do a visual mockup on what you are after in the context of your forum so we can figure out where to add the outlet?

5 Mi Piace

Sorry about the delay Sam, here ya go:

(Although there would be different people in each group - though some forums might want to have someone in more than one group).

Edit: Forgot to say, we will need to be able to configure who’s shown in each - for instance, some will be added as moderators but we may not want them listed as a moderator (as they might be a Supervisor or in some cases part of the Helper Team). Some forums might want to do the same with Admins - ie give the user Admin privs but list them as a Supervisor.

4 Mi Piace

Plugin outlets added per:

https://github.com/discourse/discourse/commit/6aea185ab4bc6f6dcfa77158f5d0e14a69abeeb8

This gives you 2 options:

  1. You can create a theme component that inserts a static bit of HTML you take care of updating by hand as you see fit.

  2. You can create a plugin that adds information to the serializer and injects the groups dynamically.

10 Mi Piace

Thanks Sam :slight_smile:

When creating/using a theme component for this, can we override all of the current groups - so basically just insert HTML for all of that section? I think that might be the easiest option to get it how we need it.

Yes you can hide built in with css

1 Mi Piace

Ciao @AstonJ @sam
Sono disponibile a provarci. È ancora disponibile in pr-welcome?
Sto pensando di creare un componente tema per questo, che avrà tre impostazioni del componente:

  • Seleziona i gruppi da visualizzare nella pagina Chi Siamo
  • Seleziona la priorità dei gruppi (gli utenti di un gruppo con priorità più alta non verranno visualizzati in quelli con priorità inferiore)
  • Disabilita la visualizzazione degli utenti in base alla priorità dei gruppi, ovvero le ripetizioni degli utenti
3 Mi Piace