Theme Component: “Category icons” in “Events plugin” calendar
The Discourse-events-calendar-icons component allows users to replace bullets in the Events plugin calendar with category icons defined in the Category icons component. Key Features:
Removes bullets in the calendar view and replaces them with category icons
Option to show a lock icon for private categories
Compatible with the Category icons component and Events plugin
Update:pmusaraj suggested a hack to simplify the component, which was implemented by oca. The original post has been made a wiki to allow for future updates.
It removes the bullet in the calendar view and replaces it with the category icon defined in the [Category icons component] settings. If there is no category icon, the bullet is still removed as one can see for Vendredi (Friday) 3rd.
Settings
show locked category icon : add the lock icon for private categories
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
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.
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.