# Groep aan/afmelden CTA

**URL:** https://meta.discourse.org/t/join-leave-group-cta/266156
**Category:** Development
**Tags:** groups
**Created:** [25 mei 2023 om 07:26 UTC](https://meta.discourse.org/t/join-leave-group-cta/266156 "2023-05-25T07:26:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [25 mei 2023 om 07:26 UTC](https://meta.discourse.org/t/join-leave-group-cta/266156/1 "2023-05-25T07:26:26Z")

</div>

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? 🙂

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 🙂

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [25 mei 2023 om 09:02 UTC](https://meta.discourse.org/t/join-leave-group-cta/266156/2 "2023-05-25T09:02:00Z")

</div>

For an alternative approach you could have a look at the [Epic Games Dev Community Forums](https://forums.unrealengine.com). They use four global filters and I believe you only need the [GitHub - discourse/discourse-global-filter · GitHub](https://github.com/discourse/discourse-global-filter) plugin to implement a similar setup.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [25 mei 2023 om 11:53 UTC](https://meta.discourse.org/t/join-leave-group-cta/266156/3 "2023-05-25T11:53:37Z")

</div>

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](https://meta.discourse.org/t/use-query-strings-to-filter-topic-views/248224) with tags but it keeps the string while user navigates on the page. I have to rethink the structure of my forum. 😅 Thanks again I’ll give it a try. 🙂
