我认为能够展示某些群组在关于页面上会很不错。
这可以用于包含与论坛相关的群组,例如“导师”(或论坛助手)群组。其他群组,如核心产品成员,也可以列出(例如在编程论坛上,可以列出与论坛紧密相关的特定项目的核心团队——其中许多通常拥有 TL4 权限,使他们能够置顶主题、编辑帖子、在其专属版块发布新闻等)。
此外,与此密切相关的是,TL4 实际上可以作为分类版主(Category Moderators)的起点(因此也是一个值得在关于页面中展示的群组)。
我认为能够展示某些群组在关于页面上会很不错。
这可以用于包含与论坛相关的群组,例如“导师”(或论坛助手)群组。其他群组,如核心产品成员,也可以列出(例如在编程论坛上,可以列出与论坛紧密相关的特定项目的核心团队——其中许多通常拥有 TL4 权限,使他们能够置顶主题、编辑帖子、在其专属版块发布新闻等)。
此外,与此密切相关的是,TL4 实际上可以作为分类版主(Category Moderators)的起点(因此也是一个值得在关于页面中展示的群组)。
Instead of some hardcore feature where there is a magic flag on every group and this is database driven, I would far prefer we just sprinkle an outlet or 2 on the about.hbs file and you solve this with a theme component.
At the moment I see no outlets on discourse/app/assets/javascripts/discourse/templates/about.hbs at ead6600f4b175b95b2028e3e0b8f7b7ede9b84e4 · discourse/discourse · GitHub
Can you do a visual mockup on what you are after in the context of your forum so we can figure out where to add the outlet?
Sorry about the delay Sam, here ya go:
(Although there would be different people in each group - though some forums might want to have someone in more than one group).
Edit: Forgot to say, we will need to be able to configure who’s shown in each - for instance, some will be added as moderators but we may not want them listed as a moderator (as they might be a Supervisor or in some cases part of the Helper Team). Some forums might want to do the same with Admins - ie give the user Admin privs but list them as a Supervisor.
Plugin outlets added per:
https://github.com/discourse/discourse/commit/6aea185ab4bc6f6dcfa77158f5d0e14a69abeeb8
This gives you 2 options:
You can create a theme component that inserts a static bit of HTML you take care of updating by hand as you see fit.
You can create a plugin that adds information to the serializer and injects the groups dynamically.
Thanks Sam ![]()
When creating/using a theme component for this, can we override all of the current groups - so basically just insert HTML for all of that section? I think that might be the easiest option to get it how we need it.
Yes you can hide built in with css
你好 @AstonJ @sam
我愿意尝试一下。pr-welcome 中是否仍然可用?
我打算为此创建一个主题组件,该组件将包含三个组件设置: