🏷️ Bars 标签列表组件

:eyeglasses: Overview

The Tag List Widget allows you to display tags from Discourse in a sidebar using my Bars! :cocktail: :beers: or the Right Sidebar Blocks Theme Components.

:link: Quick Links

:octopus: Get the code
:gear: use tag-list-component for component name in Bars!

:gear: Settings

The widget allows for some configurability with settings such as:

  • :see_no_evil: Hiding specific tags
  • :page_with_curl: Changing display styles (row or column)
  • :hash: Showing count
  • :bar_chart: Change sorting type



Install this Component

12 个赞

How’s mobiles? Normally something like 80 % or more are using mobiles and for them sidebars are useless. Will they see something or is this only for desktops and tablets?

2 个赞

@Jagster Yes this will work on mobile :grinning:

The Layouts Plugin can be configured to work on mobile. Here’s some more info from the documentation about how to set that up:

4 个赞

As our british friends say: splendid indeed :laughing:

Now I have to give a spin. My users are… not so tech savvy so they need all possible help and info.

5 个赞

为了总结一下最近发生的一些变化:

  • 我还增加了对右侧边栏块的支持
  • 我已将其部分迁移到 Glimmer(小部件会调用 Glimmer 模板)
  • 我已添加缓存以防止频繁调用 tags.json(它在每次页面更改时都会调用它!) - 如果您想看到新标签,则必须刷新浏览器。这将减轻:
    • 服务器负担
    • 可见的刷新。
5 个赞

作为迁移以移除所有旧版布局和 Discourse Widget 代码的一部分,此代码已完全迁移到 Glimmer,并已重新定位和重命名组件,您可能需要更新您的 Bars 或 RSB 配置:

仓库地址:https://github.com/merefield/discourse-tc-bars-tag-list-component

组件名称:tag-list-component

3 个赞