ondrej
11.Апрель.2024 14:28:32
2
Чтобы создать теги и настроить ограничения видимости/использования, ознакомьтесь с этим руководством ниже
Tag support is a core feature of Discourse. In this How-To I’ll go through setting up a tag schema like Car Talk uses.
We’ll want to achieve these things:
Tags for car makes and car models.
Only allow the car make and model tags to be used in certain categories.
Car model tags can only be chosen if the matching car make tag is used.
Prerequisites
Tagging is enabled by default in Discourse (via the tagging_enabled site setting). If it was previously disabled, ensure it is turned on.
In a sc…
После того как вы выполните инструкцию по созданию группы тегов, вам останется лишь перейти в настройки категории «Идеи / Предложения», добавить группу тегов здесь (красная стрелка) и нажать «Сохранить».
Для этого можно использовать компонент темы, например, представленный ниже.
This is a Discourse theme component that allows admin to change tag’s background color and text color.
Repository Link
https://github.com/RailForWork/Discourse-Coloring-Tag
[image]
Theme Settings
Comma delimited in this order: Tag Name,Background Color,Text Color.
Tag Name: What your Tag Name is.
Background Color: Background Color of the tag.
Text Color: Decide the text color in the tag.
A correct example for settings will be: [Theme-component,#ffffff,black.]
(Both Background color an…