Este componente de tema está obsoleto y ya no debería utilizarse. Sus funciones ahora forman parte de Discourse Core (consulta: Llevar funciones populares a Discourse).
Para la personalización de iconos de categorías privadas, consulta este tema.
Resumen
Category Icons permite que los enlaces de insignias de categoría tengan iconos junto al nombre de la categoría.
Ten en cuenta que este componente también te permite anular el icono de candado de categoría utilizado para indicar categorías privadas.
Consulta también el componente Tag Icons (que hace lo mismo para las etiquetas).
Configuración
Nombre
Descripción
lista de iconos de categoría
La lista de categorías y sus respectivos iconos
iconos svg
Añadir iconos adicionales no incluidos por defecto
icono de candado de categoría
El icono para reemplazar el ‘icono de candado de categoría’
Para añadir un icono a una categoría, introduce los detalles separados por comas de la siguiente manera “slug,icon,color,match”
El color está en el formato #123456, o “categoryColor” para usar el color predeterminado de la categoría (el mismo que el de la insignia)
Si match es “partial” (parcial), el slug solo necesita coincidir parcialmente con el slug de la categoría; de lo contrario, se requiere una coincidencia exacta.
Problemas
No respeta correctamente el color del icono cuando se utiliza con el estilo de categoría bullet. En general, sin embargo, no debería utilizarse con los estilos de categoría bullet o bar, ya que la interfaz de usuario quedaría innecesariamente recargada.
Historial de desarrollo
Gracias a @rogerco, por añadir la palabra clave “partial” para coincidir parcialmente con los slugs de categoría (es decir, introducir “book,icon,red,partial” coincidiría con todos los slugs de categoría que contengan “book”).
¿Alojado por nosotros? Los componentes de tema están disponibles para su uso en nuestros planes Standard, Business y Enterprise.
This component has had an impact on our forum in an artistic way. I like it.
However there is a problem with category names. I created a category with the name of “Doğa Bilimleri”, but later changed its name to “Bilim” and created a sub-category with the name of “Doğa Bilimleri”.
I only assigned an icon for the category of “Doğa Bilimleri”, not for “Bilim”.
But the flask icon has been assigned for both “Bilim” and its sub-category “Doğa Bilimleri”.
I cannot also assign an icon to a category whose name I change if I use the new name of it, yet the old name always works. (I solved this one: This is all about “category slug”. If you leave the category slug with the old name, you will experience same pseudo-problem.)
Edit: I figured out why the flask icon is assigned for the main category. It is because both the main category and the sub-category include same word “Bilim”. Even if I give a random name like “abcdefbilimghjk” in the category icon list, it will still assign the icon I choose to the category “Bilim”, since the random name includes the word “bilim”.
Hi Emre, thanks for the report, I’ve now fixed the issue with loose matching of slugs. If you update the theme, it should be resolved, “abcdefbilimghjk” will no longer apply the icon to the “bilim” slug.
First, a big thank you to @pmusaraj for making this great theme-component.
I have configured it on my site, but have two issues:
There seems to be no way I can “attach” any icon to Jadran category
I have tried with various icons, even the ones that are working on other categories with no success.
Configuration is the same as for other categories:
I have an idea, why “Jadran” does not work: I have another category “Jadranje”, which includes first name. I would expect that slug would be checked with exact match (everything between /), right?
Is there a possibility to upload own svg icon and then use it as category icon? I tried to upload it on Category icons upload, but not sure how should I reference it?
Do you have any plans to extend this to the sub-category boxes Penar? Would be awesome to have them everywhere. My site looks great with all these icons now, appreciate this!