Hey all, just noticed today that we can no longer do the following for restricted categories:
Wrench > Pin Topic > Make Banner Topic
How is everyone else managing their templates for banners they reuse?
I’m not understanding why we would want the information used in banners floating around cluttering up public categories, but maybe I’m missing something.
When functionality like this changes or gets removed, it’s usually due to security or access-control considerations. In this case, banner topics are now gated so that topics in read-restricted categories can’t be used as banners anymore.
That said, we’re currently discussing internally whether there are better workflows or improvement that could help with use cases like yours.
In the meantime, one possible workaround, if the goal is simply to avoid banner topics being visible in normal topic lists, is to create the banner topic as Unlisted from the start in a public category instead of a private one. Unlisted topics won’t appear in topic lists or category views for regular users, but they can still be accessed via direct link and used programmatically:
To keep things organized, you could also add a tag like #banner so it’s easy to locate those topics later.
From there, you can use the Discourse Automation plugin and run the “Make Banner Topic” script, referencing the ID of the unlisted topic. That will convert it into a banner while keeping it effectively hidden from normal browsing.
This modification strikes me as somewhat peculiar.
Firstly, the staff members who possess the authority to modify banners are the same individuals who have access to this read-restricted topic. When they choose to designate a topic as a banner, it is reasonable to assume that they intentionally wish to make its contents public, so I do not think this would be a security issue.
Secondly, in practice, staff members on our site are accustomed to drafting announcements within a read-restricted topic before setting it as a banner.
The security issue lies in that banner content was being made available to everyone, and not just admins/mods. I don’t agree with your assumption that admins are aware that all read-restricted banners would be made public.
However, I do see the use case and the desire to not muddy public categories