Custom Category Boxes

|||
-|-|-|
:discourse2: | Zusammenfassung | Benutzerdefinierte Kategorieboxen rendern Ihre Kategorien als Boxen mit angepassten Hintergründen auf Ihrer Kategorieseite. Diese Komponente rendert auch jede Kategorieseite mit einem Kategoriebanner, wenn show_banner ausgewählt ist.
| :eyeglasses: | Vorschau | Vorschau im Discourse Theme Creator |
:hammer_and_wrench: | Repository-Link | https://github.com/discourse/discourse-custom-category-boxes-component
:open_book: |Neu bei Discourse Themes? | Anfängerleitfaden zur Verwendung von Discourse Themes

Komponente installieren

Funktionen

:information_source: Damit diese Komponente funktioniert, muss desktop category page style entweder auf categories with Featured Topics oder Boxes with Featured Topics gesetzt sein.

Es stehen vier Optionen zur Auswahl. Die Standardeinstellung ist halftones.

Halftone-Hintergrund

Halftone-Option

Kreuzschraffur-Hintergrund

Kreuzschraffur-Option

Keine

Keine-Option

Benutzerdefiniert

Wenn Sie diesen Effekt mit eigenen Grafiken erstellen möchten, laden Sie 4 verschiedene .png-Dateien mit transparentem Hintergrund oder traditionelle .jpg-Dateien auf der Einstellungsseite hoch. Verwenden Sie für jeden Upload die Benennungskonvention custom-0 bis zum letzten als custom-3. Stellen Sie sicher, dass Sie custom als Einstellung für den Kategoriehintergrund auswählen.

Benutzerdefinierte Option

Einstellungen

Name Beschreibung
category background Wählen Sie eine der vier Optionen
show banner Wenn ausgewählt, wird auf jeder Kategorieseite ein gestaltetes Banner angezeigt, das dem Aussehen der Kategoriebox entspricht.
Übersetzungen Standard
more_topics Weitere Themen…

31 „Gefällt mir“

Simple, clean. Nice component. Thanks.

3 „Gefällt mir“

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

1 „Gefällt mir“

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

3 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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

Großartige Arbeit an dieser Komponente!
Ich habe ein Problem damit, dass neu hinzugefügte Kategorien nicht richtig angezeigt werden. Ich habe gerade die Kategorie “Events” hinzugefügt und das Kontrollkästchen zum Anzeigen ausgewählt, aber sie wird auf der “cats”-Seite nicht angezeigt. Ich bin mir nicht sicher, wie ich es dazu bringen kann, alle von jedem Benutzer ausgewählten Kategorien anzuzeigen.


Nur ein Update, dass der Lebenszyklus dieser Theme-Komponente zu Ende gegangen ist. Diese Komponente wird vom Discourse-Team nicht mehr aktiv unterstützt.

1 „Gefällt mir“