Add /groups to top nav

AI-generated summary

A theme component by alehandrof adds the top navigation bar to the groups page, similar to the existing /users navigation. The component is now broken due to recent changes on the group page, and alehandrof plans to fix it upon return. david notes that using the official JavaScript plugin API would make it more resilient and moves the discussion to the #theme:broken-theme category. Eduardo_Braga asks about the availability of the groups option. alehandrof clarifies a previous post, and sam points out that the change can be made using the client-side API in a theme component without requiring a plugin. alehandrof then archives the theme on GitHub, indicating the topic can be closed.

Location

Repo: GitHub - alehandrof/discourse-group-nav: Add group nav for Discourse (theme component) · GitHub

About

This theme component adds the full nav bar on both mobile and desktop on the groups page:

It’s based on the component that does the same thing with /users. So much so, that I’m not really sure how this works :slight_smile:

Install guide

How to install a theme or theme component

14 « J'aime »

FYI - This theme component is now broken due to the recent changes on the group page. I’m at a conference right now, but I’ll look at repairing it when I get back. If any one else wants to take a stab at it, go ahead :slight_smile:

4 « J'aime »

J’ai déplacé ce sujet vers la catégorie (tout juste créée !) #customization:theme:broken-theme pour éviter toute confusion. Il serait néanmoins idéal de le corriger. L’utilisation de l’API JavaScript officielle rendrait le système plus robuste à l’avenir (ce qui s’applique aussi à l’équivalent pour /user).

2 « J'aime »

Is the option to add groups available?

Ce plugin remplace les fonctionnalités que fournissait cet ancien thème : Custom Top Navigation Links

2 « J'aime »

Notez qu’il n’y a aucune raison technique pour laquelle cela nécessite un plugin ; cette modification peut être effectuée uniquement à l’aide de l’API côté client dans un composant de thème.

3 « J'aime »

Oh là là ! Je voulais dire exactement le contraire de ce que j’ai posté :

“Ce nouveau composant de thème remplace la fonctionnalité que fournissait cet ancien thème.”

Désolé, j’ai posté rapidement sans relire :flushed_face:

N’hésitez pas à fermer ce sujet. J’ai déjà archivé ce thème sur Github.

2 « J'aime »