Theme-Komponente zur Verwendung von „Category icons“ im Kalender des „Events plugin“

Discourse-Ereigniskalender-Symbole

Repository: https://framagit.org/oca/discourse-events-calendar-icons.git

Diese Komponente erfordert sowohl:

Nach/Vor

Es entfernt den Aufzählungspunkt in der Kalenderansicht und ersetzt ihn durch das in den Einstellungen der [Kategorie-Symbole-Komponente] definierte Kategoriensymbol. Wenn kein Kategoriensymbol vorhanden ist, wird der Aufzählungspunkt dennoch entfernt, wie man am Beispiel von Vendredi (Freitag), dem 3., sehen kann.

Einstellungen

  • show locked category icon: Fügt das Schlosssymbol für private Kategorien hinzu

Installation

Repository: https://framagit.org/oca/discourse-events-calendar-icons.git

13 „Gefällt mir“

Nice work @oca!

I think you can avoid the hack with the category icons component by including the {{category-link}} helper instead of mounting the category-icons widget. I tried locally with

{{category-link event.topic.category hideParent="true"}}

and it works well, it needs some styling adjustments to hide the category label, but otherwise, the icons show up for parent and non-parent categories.

4 „Gefällt mir“

I’ve applied the hack you suggested.
The display is almost equivalent and do not require the extra step.
By the way, I’ve used the lock icon from category-link in a theme setting.

I can’t modify the top post removing the instruction. Can someone wiki the post or give me the right to amend it ? Thanks in advance.

1 „Gefällt mir“

Great, I have updated the topic to make the original post a wiki so you can edit.

2 „Gefällt mir“