Custom Category Boxes

|||
-|-|-|
:discourse2: | Riepilogo | Custom Category Boxes renderizzerà le tue categorie come caselle con sfondi personalizzati nella tua pagina delle categorie. Questo componente renderizzerà anche ogni pagina di categoria con un banner di categoria se show_banner è selezionato.
| :eyeglasses: | Anteprima | Anteprima su Discourse Theme Creator |
:hammer_and_wrench: | Link al Repository | https://github.com/discourse/discourse-custom-category-boxes-component
:open_book: |Nuovo a Discourse Themes? | Guida per principianti all’uso di Discourse Themes

Installa Componente

Funzionalità

:information_source: Affinché questo componente funzioni, lo stile della pagina delle categorie desktop deve essere impostato su categorie con argomenti in primo piano o caselle con argomenti in primo piano.

Ci sono quattro opzioni tra cui scegliere. L’impostazione predefinita è halftones.

Sfondo Halftone

Opzione Halftone

Sfondo a tratteggio incrociato

Opzione Crosshatch

Nessuno

Opzione Nessuno

Personalizzato

Se desideri creare questo effetto con alcune delle tue grafiche, carica 4 file .png variabili con sfondi trasparenti o .jpg tradizionali nella pagina delle impostazioni. Per ogni caricamento, usa la convenzione di denominazione custom-0, fino all’ultimo come custom-3. Assicurati di selezionare custom come impostazione dello sfondo della categoria.

Opzione Personalizzata

Impostazioni

Nome Descrizione
sfondo categoria Seleziona una delle quattro opzioni
mostra banner Se selezionato, apparirà un banner stilizzato su ogni pagina di categoria, che corrisponderà all’aspetto della casella della categoria.
Traduzioni Predefinito
more_topics Altri argomenti…

31 Mi Piace

Simple, clean. Nice component. Thanks.

3 Mi Piace

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

1 Mi Piace

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

3 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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

Ottimo lavoro su questo componente!
Ho un problema con esso che non mostra correttamente le categorie appena aggiunte. Ho appena aggiunto la categoria eventi e ho selezionato la casella per visualizzarla e non viene mostrata nella pagina delle categorie. Non sono sicuro di come fare per visualizzare tutte le categorie che ogni utente ha selezionato.


Solo un aggiornamento sul fatto che il ciclo di vita di questo componente del tema è giunto al termine. Questo componente non è più attivamente supportato dal team di Discourse.

1 Mi Piace