Möglichkeit, Gruppen auf der Über-Seite hervorzuheben

Ich finde es wäre schön, bestimmte Gruppen auf der Über-Seite hervorheben zu können.

Dies könnte genutzt werden, um Gruppen einzubeziehen, die mit dem Forum verbunden sind, beispielsweise eine Gruppe „Mentoren" (oder „Forumshelfer"). Auch andere Gruppen wie Mitglieder von Kernprodukten könnten aufgeführt werden (also auf einem Programmierforum Mitglieder des Kernteams spezifischer Projekte, die eng mit dem Forum verbunden sind – viele davon haben oft den Status TL4, was ihnen ermöglicht, Threads zu pinnen, Beiträge zu bearbeiten, Nachrichten in ihren dedizierten Bereichen zu veröffentlichen usw.).

Auch eng damit verbunden: TL4 könnte tatsächlich als Ausgangspunkt für Kategorien-Moderatoren genutzt werden (und somit wieder eine Gruppe, die es wert ist, auf der Über-Seite aufgeführt zu werden).

13 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

Hallo @AstonJ @sam,
ich würde das gerne ausprobieren. Ist es immer noch im pr-welcome verfügbar?
Ich überlege, dafür eine Theme-Komponente zu erstellen, die drei Komponenteneinstellungen hat:

  • Gruppen auswählen, die auf der Über-Seite angezeigt werden sollen
  • Priorität der Gruppen festlegen (Benutzer einer Gruppe mit höherer Priorität werden nicht in einer Gruppe mit niedrigerer Priorität angezeigt)
  • Anzeige von Benutzern basierend auf der Gruppenpriorität deaktivieren, d. h. Wiederholungen von Benutzern vermeiden
3 „Gefällt mir“