Join / leave group CTA

AI-generated summary

The discussion revolves around implementing a feature to allow users to easily filter content from two main subjects, subjectA and subjectB, on a forum. Don proposes using a three-way switch in the header to toggle between subjects and suggests utilizing groups and category permissions to handle this. He also seeks advice on creating a CTA button or toggle to join or leave a group by clicking on it.

Nolo offers an alternative approach, suggesting the use of global filters as seen on the Epic Games Dev Community Forums, which can be implemented using the Discourse Global Filter plugin. Don appreciates the suggestion and plans to explore the plugin, which seems to work similarly to filtering topic views with tags, but maintains the filter string while navigating the page.

Hello,

I would like to divide the forum into three parts. The page has a main subject, subjectA, which I created another off-category subjectB next to. For this, I thought that a three-way switch should be made in the header or in some other central location. By default, the switch would be in the middle position, which would mean that both subjectA and subjectB of the page would be visible. If the user moves the switch in the direction of subjectA, then subjectB would not be visible, if in the direction of subjectB, then subjectA would not be visible. We could handle these with groups and category permissions.

If user select the subjectA then it adds the user automatically to a group groupA which adds some permissions to subjectB categories to mute.

I try to figure out how to make a CTA button or a toggle to join or leave a group by clicking on it. But unfortunately I didn’t find any way. Is this possible somehow? :slightly_smiling_face:

This project is for to add the ability to users to quickly and easily filter the content from the two main subjects.

Any idea or advice would be appreciated! Thanks :slightly_smiling_face:

For an alternative approach you could have a look at the Epic Games Dev Community Forums. They use four global filters and I believe you only need the GitHub - discourse/discourse-global-filter · GitHub plugin to implement a similar setup.

Thanks @manuel, This looks great. For the first look if I see it correctly this plugin works something like Using query strings to filter topic views with tags but it keeps the string while user navigates on the page. I have to rethink the structure of my forum. :sweat_smile: Thanks again I’ll give it a try. :slightly_smiling_face: