开发Discource插件 - 第三部分 - 添加自定义站点设置

To expand on the documentation:

A complete listing of Site Settings types is available in the type_supervisor.rb code. Just above that you can also see the valid child keys that a Site Setting accepts.

A more advanced example which uses more of these options can be found in the discourse-welcome-link theme component. These same values should work inside a plugin, but the file would instead be at config/settings.yml.

3 个赞