I'm developing a plugin to customize the appearance of specification attribute filters.
I have already created an additional domain model with properties to extend the specification attribute options (for example i can assign an image to each specification attribute option) in my plugin.
Now I would like to change the appearance of the filters to reflect those settings applied through the plugin (a user can click on an image instead of a checkbox). I see one way to do this, but am not happy with it:
Create a widget which reimplements the filter functionality and display it in the PublicWidgetZones.CategoryDetailsBeforeFilters widget zone. In the theme I will then simply delete the HTML rendering the current filter so I don't show filters twice. This works because in my situation I am in control of the theme AND the plugin, but I would prefer to avoid this.
Is there a better way to do this?