لافتات الفئة

:discourse2: ملخص يستخدم Category Banners تفاصيل التصنيفات الموجودة لإنشاء لافتات لصفحات التصنيفات الخاصة بك (بالنسبة للوسوم، راجع Discourse Tag Banners).
:eyeglasses: معاينة معاينة في منشئ مواضيع Discourse
:hammer_and_wrench: رابط المستودع https://github.com/discourse/discourse-category-banners
:open_book: جديد في مواضيع Discourse؟ دليل المبتدئين لاستخدام مواضيع Discourse

تثبيت مكون هذا المظهر

الميزات

يستخدم Category Banners تفاصيل التصنيفات الموجودة لإنشاء لافتات لصفحات التصنيفات الخاصة بك. يستخدم اسم التصنيف ووصفه ولونه لتوليد لافتة في أعلى صفحات التصنيف ذات الصلة (بالنسبة للوسوم، راجع Discourse Tag Banners).

يُعرّف وصف التصنيف بواسطة الفقرة الأولى في موضوع “تعريف التصنيف لـ…” الخاص بكل تصنيف. تُحدَّد ألوان خلفية/نص اللافتة من خلال إعدادات شارة التصنيف الخاصة بك.

بشكل افتراضي، سيظهر هذا على سطح المكتب والجوال عبر جميع صفحات التصنيفات والتصنيفات الفرعية، لكنه لن يظهر إذا لم تكن قد منحت تصنيفك وصفًا.

الإعدادات

يأتي هذا المكون مع خيارات لتجاوز الافتراضيات:

الاسم الوصف
show description إظهار الوصف من منشئ “حول هذا التصنيف”
show mobile إظهار اللافتات على الجوال
show subcategory إظهار اللافتات للتصنيفات الفرعية
hide if no description إخفاء اللافتات إذا لم يتم تعيين وصف التصنيف
show category logo إظهار شعار التصنيف
align text محاذاة النص
exceptions لن تظهر اللافتة لهذه أسماء التصنيفات
categories التصنيفات التي سيظهر لها لافتة
plugin outlet يغير موضع اللافتة على الصفحة
show category icon إظهار أيقونة التصنيف أو الرموز التعبيرية من إعدادات التصنيف *
override category icon color عند استخدام أيقونات التصنيف، فإن تمكين هذا سيجعل الأيقونة تطابق لون نص اللافتة

ملاحظات التخصيص

إذا كنت ترغب في تخصيص هذه اللافتات باستخدام بعض CSS إضافي، يمكنك استهداف رؤوس تصنيفات محددة باستخدام هذا الهيكل (مثال: example-category هو اسم تصنيفك):

.category-title-header {
  &.category-banner-example-category {
        background: url(example.jpg);
  }
}

يضيف هذا المكون أيضًا الفئة category-header إلى وسم الجسم كهدف CSS إضافي.


:discourse2: مُستضاف لدينا؟ مكونات المظاهر متاحة للاستخدام في خططنا القياسية، والتجارية، والمؤسسية.

101 إعجاب
Beginner's guide to using Discourse Themes
How difficult would it be to make the Discourse UI more like Flarum?
Banner on Discourse Forum
Unique CSS class for Group pages?
Category boxes links
Plugins and theme components rarely support tag-pages
Discourse Category Headers theme component
Upcoming Events calendar -- how to embed in post?
New Theme: Tag-Pages Navigation
Tag Banners
Sending a message upon post
Header Submenus
Impact of component positioning with 2.5.0.beta6
Category Description
Capitalizing Tag names in Tag Banners
About Category Auto-Created Topic - Sitewide Options
Subcategories
Discourse as a Conference App (in person, virtual, or hybrid)
Show different ads on different categories
Unique CSS class for Group pages?
Adjusting layout of category pages
Category image not aligning as expected
Add forum description at top of home page
How do I add category banners?
Recommendations on layouts? A way to preview changes?
Category banner image slow to load
Use tag and category banner components together
Category page with fixed organization of topics
Customizing your site with existing theme components
How are these subcategories displayed on meta?
What is it that creates the big heading which is based on the "About the ... category" topic?
Discourse Doc Categories
Theme or Custom CSS on Monday’s Discourse Instance?
I need to install the Category Style plugin for my website
I want to know how to do this?
Add banner to categories
Help us test Horizon, our newest theme
Official groups/posts
Discourse Category Headers theme component
Creating a Unique Gallery Layout for a Category
Official groups/posts
Horizon Theme
New users can't sign up, 404 errors in console
Category, Group, Tag Descriptions as Topics
Uncaught (in promise) error
Category, Group, Tag Descriptions as Topics
Discourse Category Home :house:
Do you know what theme this is?
Traditional multi level hierarchy vs flat discourse hierarchy
How to add a "button" which composes a pre-filled topic
Category color selection should be allowed even when style is "none"
Show customisable message on private topics/categories?
Category description just after name
How to add this header, colored categories, and sidebar categories?
Receive the full description of a category in a theme
How can I create a category wide banner?
How to display a disclaimer to every topic in a category?
Update changed the "category logo" settings and now all the pictures are microscopic. revertable?