Qual é a finalidade do botão "Converter" com temas?

Can someone explain what does this “Convert” button do, please? What is it for?

Convert - Convert this component to theme

1 curtida

The “Convert” button appears on both theme and component pages. It will allow you to convert a theme to a component or vice versa through the admin interface. Most Discourse admins will never need to use it. Themes and components found at theme already include the correct designation.

This should be covered in our Beginner's guide to using Discourse Themes, but the basic idea is:

  • Themes are considered to be the baseline of your Discourse site’s styling. Often sites offer multiple, user-selectable themes.
  • Components are meant to be added to themes to extend style and/or functionality beyond your basic theme(s).
8 curtidas

Ótima explicação e guia acima. Cliquei no componente de conversão para tema, sem saber o propósito da função - há alguma maneira de reverter isso? Ou você tem que excluir o componente e reinstalá-lo?

1 curtida

Como explicado acima, o botão de conversão aparece em ambos os temas e componentes. Então, basta converter o componente de volta para um tema.

2 curtidas