Custom Category Boxes

|||
-|-|-|
:discourse2: | Resumo | Custom Category Boxes renderizará suas categorias como caixas com fundos personalizados em sua página de categorias. Este componente também renderizará cada página de categoria com um banner de categoria se show_banner for selecionado.
| :eyeglasses: | Prévia | Prévia no Discourse Theme Creator |
:hammer_and_wrench: | Link do Repositório | https://github.com/discourse/discourse-custom-category-boxes-component
:open_book: |Novo no Discourse Themes? | Guia para iniciantes em como usar temas do Discourse

Instalar Componente

Funcionalidades

:information_source: Para que este componente funcione, o desktop category page style precisa ser definido como categories with Featured Topics ou Boxes with Featured Topics.

Existem quatro opções para escolher. O padrão é halftones.

Fundo Halftone

Opção Halftone

Fundo Crosshatch

Opção Crosshatch

Nenhum

Opção Nenhum

Personalizado

Se você quiser criar este efeito com suas próprias imagens, faça o upload de 4 arquivos .png variados com fundos transparentes ou .jpg tradicionais na página de configurações. Para cada upload, use a convenção de nomenclatura custom-0, até o último como custom-3. Certifique-se de selecionar custom como sua configuração de fundo de categoria.

Opção Personalizada

Configurações

Nome Descrição
category background Selecione uma das quatro opções
show banner Se selecionado, um banner estilizado aparecerá em cada página de categoria, combinando com a aparência da caixa da categoria.
Traduções Padrão
more_topics Mais Tópicos…

31 curtidas

Simple, clean. Nice component. Thanks.

3 curtidas

Great plugin! I have been searching for it for a long time, thank you.

1 curtida

I think it should have auto-resize for picture or limit

3 curtidas

thanks for the theme :+1:

may you consider slight changes so that the theme also works for rtl direction without any edits? (as edits go away after updates).

also where can I translate this string: “more topics …”. it was neither in the admin customize section nor in the theme :thinking: .

3 curtidas

Glad you enjoy the component. I have added translation for more topics.... As for the rtl direction it is something I will look into.

Until then, make sure you copy your customization and add it back after updating the component. :smile:

3 curtidas

thanks :blush:

for this, there’s only one line which needed to be commented:

a #custom-category-title{ text-align: left;}

btw, I noticed that these category boxes won’t apply for subcategories. is it possible that the same rules also applies to subcategory boxes?

2 curtidas

I believe you might be able to create your changes as a seperate theme component with Overides in your component plugin.

you are right, and I’ll do that for this case.

but I believe that when the whole discourse application is compatible with both rtl and ltr directions, it means that “details matter for the creators” and “they want to build the best service, not just a service”. well, this can happen for its great themes as well.

2 curtidas

I want this theme too but I’m straggling to add it.

Ótimo trabalho neste componente!
Estou tendo um problema com ele não exibindo as categorias recém-adicionadas corretamente. Acabei de adicionar a categoria de eventos e selecionei a opção para exibi-la, mas ela não está aparecendo na página de categorias. Não tenho certeza de como fazer para que ela exiba todas as categorias que cada usuário selecionou.


Apenas uma atualização de que o ciclo de vida deste componente de tema chegou ao fim. Este componente não está mais sob suporte ativo da equipe do Discourse.

1 curtida