تم إيقاف هذا المكوّن الإضافي للثيمات ولا ينبغي استخدامه بعد الآن. تم نقل ميزاته إلى نواة Discourse الآن (اطّلع على: إضافة الميزات الشائعة إلى Discourse).
للتخصيص الخاص بأيقونات الفئات الخاصة، يُرجى الرجوع إلى هذا الموضوع.
الملخص
يسمح Category Icons (أيقونات الفئات) بوضع أيقونات بجانب اسم الفئة في روابط شارات الفئات.
لاحظ أن هذا المكوّن يتيح لك أيضًا تجاوز category lock icon (أيقونة قفل الفئة) المستخدمة للإشارة إلى الفئات الخاصة.
اطّلع أيضًا على المكوّن Tag Icons (الذي يقوم بنفس الشيء بالنسبة للوسوم).
الإعدادات
الاسم
الوصف
category icon list
قائمة الفئات وأيقوناتها المقابلة
svg icons
إضافة أيقونات إضافية غير مدرجة افتراضيًا
category lock icon
الأيقونة لاستبدال ‘أيقونة قفل الفئة’
لإضافة أيقونة إلى فئة، أدخل التفاصيل مفصولة بفواصل هكذا “slug,icon,color,match”
يكون اللون بتنسيق #123456، أو “categoryColor” لاستخدام اللون الافتراضي للفئة (نفس لون الشارة)
إذا كان match (المطابقة) “partial” (جزئي)، فإن slug (المعرف المختصر) يجب أن يطابق جزءًا من المعرف المختصر للفئة فقط، وإلا يلزم مطابقة دقيقة.
المشكلات
لا يحترم لون الأيقونة بشكل صحيح عند الاستخدام مع نمط الفئة bullet (نقطة). بشكل عام، لا ينبغي استخدام هذا مع أنماط الفئة bullet أو bar (شريط) لأن واجهة المستخدم ستكون مزدحمة بشكل غير ضروري.
تاريخ التطوير
شكرًا لـ @rogerco، لإضافة الكلمة الرئيسية “partial” للمطابقة الجزئية لمعرفات الفئات (أي أن إدخال “book,icon,red,partial” سيطابق جميع معرفات الفئات التي تحتوي على “book”).
مستضاف من قبلنا؟ مكوّنات الثيمات متاحة للاستخدام في خططنا Standard (القياسية) و Business (الأعمال) و 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!