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 curtidas

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 curtidas

Movi isso para a categoria (novíssima!) #customization:theme:broken-theme para evitar qualquer confusão. Ainda assim, seria ótimo corrigir o problema. Usar a API oficial de plugins JavaScript tornaria o sistema mais resiliente no futuro (o mesmo vale para a equivalente em /user).

2 curtidas

Is the option to add groups available?

Este plugin substitui a funcionalidade que este antigo tema fornecia: Custom Top Navigation Links

2 curtidas

Nota: não há razão técnica para isso exigir um plugin; essa modificação pode ser feita usando apenas a API do lado do cliente em um componente de tema.

3 curtidas

Nossa! Queria dizer exatamente o oposto do que postei:

“Este novo componente de tema substitui a funcionalidade que este tema antigo fornecia.”

Desculpe, postei rapidamente sem reler :flushed_face:

Sinta-se à vontade para fechar este tópico. Já arquivei este tema no Github.

2 curtidas