Desenvolvendo Plugins Discourse - Parte 3 - Adicionar configurações personalizadas do site

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 curtidas