Community glossary?

Hi everyone, I’m interested in creating a community glossary w/in discourse. Something like this:

I understand that this functionality isn’t part of the core, but is there a plugin that already exists? Or has anyone come up with a creative way to get this done in their forum?

To clarify, I want to add a glossary to my forum – I don’t want to turn a forum into a glossary.

Thanks!

2 个赞

Would making it a wiki post so what you want?

1 个赞

A wiki post (for the content) with DiscoTOC (for the navigation between letters) would be a pretty good combo

I wonder if this plugin might help in some way

5 个赞

It could get the job done-ish, but not exactly what I’m thinking. With a glossary page, each word would then be a link to it’s definition, or could have the definition right below the word (maybe accordian to see definition). In the former case, linkifying throughout the site could route a user to the word’s definition page, and in the latter case, to the open accordian.

The above could be done with wikis and a planned framework, but ease of community use would increase if there was a more straightforward way to add a word, rather than a topic. Also, the alphabetical sorter on the top of the page is a nice feature.

2 个赞

I haven’t worked with DiscoTOC. That might be the way to make this work. Knowledge Explorer plugin is fantastic, but I have to think about how to make it work with the glossary and rest of the site.

1 个赞

There is a linkify theme component. It could do what you want if it’s just a few words. If you are going to have dozens of hundreds you’ll want a plugin

5 个赞

Just played around with that a little bit and added some CSS to my theme to make glossary links appear in the standard text color with a dotted underline.

a.linkify-word { 
  text-decoration-line: underline; 
  text-decoration-style: dotted; 
  color: $primary; 
  text-underline-offset: 0.1em; 
}

(Browser-compatibility for text-underline-offset is not great yet, but at least on Firefox (Desktop) and Safari it makes this look a little nicer.)

Examples:

4 个赞

我一直在为 https://discourse.igkt.net/ 论坛创建一个术语表(Glossary)部分,并按以下方式操作:

  • 创建一个用于术语表条目的类别(在我的案例中是 #glossary

  • 开始创建术语表主题(Topics)。在我的案例中,我为术语表中的每个概念创建了一个主题,但另一种方法是使用更少的主题,并使用 Markdown 标题,这样您就可以使用锚点样式的链接指向它们。任何具有唯一链接的内容都可以使用。

  • 使用内置的 监视词汇 (Watched Words) 功能将术语表中的词汇(及其任何同义词)链接到相关的主题。 (遗憾的是,这必须手动完成,除非我能想出自动化方法)

这是该论坛的一个新功能,因此我相信很快就会收到关于它是否有用、我们是否能获得足够的术语表覆盖率,以及它是否会干扰用户自己为这些词添加链接的能力的反馈。

很想听听其他实施过术语表的人是如何做到的。

3 个赞

我也尝试过这个;由于技术和社会原因,让它运行起来出奇地困难。

我的建议:

  1. 使用“被关注词语”(watched words)时,请使用限制性正则表达式——否则它会在不合时宜的时候应用。

  2. 主题模板(Topic templates)可以非常有助于鼓励贡献的良好结构。

  3. 你需要一个倡导者。或者准备好自己成为倡导者。辛苦的工作!

1 个赞

您可能会发现这两个 Theme component 有用。

将词汇表作为网站文档的一部分是个好主意。为此,插件 Doc Categories 非常有用。我通常会复制各种关于用户界面等的文档主题,作为操作指南(Hot-to)。

https://meta.discourse.org/t/auto-linkify-words/82193

https://meta.discourse.org/t/add-abbr-tags-to-words-in-posts/88394

1 个赞