ملخصات قائمة المواضيع

:discourse2: Summary Topic List Excerpts allows you to enable excerpts for unpinned topics (by default, Discourse only displays topic excerpts for pinned topics).
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-topic-excerpts
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

Works great alongside Topic List Thumbnails in “list” mode!

:information_source: The excerpts themselves are generated by Discourse Core, using the same logic as the excerpts of ‘pinned’ topics. If you have a query / suggestion about how the excerpts are built, please make a new support topic.


:bulb: Tip: you can keep line breaks in excerpts by adding this CSS to your theme:

.topic-list .topic-excerpt {
    white-space: pre-line;
}

Be aware that results may look off depending on the posts’ contents.

Settings

Name Description
show excerpts mobile
show excerpts desktop
enabled categories Enable excerpts in specific categories. Leave both categories and tags blank to show excerpts on all routes
enabled tags Enable excerpts in specific tags. Leave both categories and tags blank to show excerpts on all routes.

:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

Last edited by @JammyDodger 2024-06-15T19:28:50Z

Check documentPerform check on document:
47 إعجابًا

Great, a blog-like topic listing (together with Topic List Thumbnails Component)! :clap:

Can it be restricted by category like the other component?

7 إعجابات

Sure, I just added a category setting:

https://github.com/discourse/discourse-topic-excerpts/commit/aed85ba07007d38fe98de8889e3b155c69aeb812

13 إعجابًا

Thanks, much appreciated.

I also take the chance to report that there is some kind of incompatibility with the Topic Thumbnails component, since the images appear twice for each topic in the topic list (topic list option on thumbnails component + topic excerpts component).

إعجابَين (2)

You’re right, sorry about that. Should be fixed now

9 إعجابات

Love this component; thank you! Is there any way to adjust the word/character length of the excerpts displayed in topic lists? (Never mind, I found the topic excerpt maxlength site setting, adjusted it, and rebuilt HTML for the topic posts in question.)

3 إعجابات

يعمل إعداد الفئة ولكنه لا يعمل إعداد العلامة في أحدث إصدارات ديسكورس.

إعجابَين (2)

@th21 يجب أن يتم التعامل مع العلامات الآن - آسف على التأخير!

3 إعجابات

تم تقسيم منشور إلى موضوع جديد: القدرة على عرض مقتطفات لفئات معينة فقط على /latest

تم تقسيم مشاركة إلى موضوع جديد: تمييز المحتويات من صفوف قائمة المواضيع باستخدام ألوان مختلفة

مرحباً، لماذا زر “اقرأ المزيد” رمادي في موقعي بينما هو أزرق في موقعك؟ كيف يمكنني تغيير اللون؟

إعجاب واحد (1)

مرحباً، يمكنك استخدام CSS للتخصيص.

على سبيل المثال، باستخدام اللون المحدد مسبقًا للروابط. ومع ذلك، يمكنك توفير اللون الذي تريده.

.topic-excerpt-more {
    color: var(--tertiary);
}
إعجاب واحد (1)

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

مرحباً، هل من الممكن عرض أحدث منشور بدلاً من المنشور الأول؟

إعجابَين (2)

لدي إضافة ومكون سمة لهذا: Topic List Latest-Post Excerpt

إعجابَين (2)

هل هناك مشكلة في مكون السمة على سطح المكتب؟

عندما أقوم بتمكينه، تظهر الصور الرمزية هكذا:

لقد قمت بتحديث discourse اليوم

تعديل: هل هناك طريقة لتحديد عدد الأسطر/الأحرف للمقتطف؟

إعجابَين (2)

نعم، نفس الشيء هنا

آخر شيء يكون على ما يرام عند تسجيل الخروج، ولكن المسارات الأخرى عندما يتم تمكين right-sidebar-blocks يحدث هذا

زر تبديل المقتطف غير مرئي على الهواتف المحمولة. هل هذا مقصود بالتصميم أم أنني أسأل مبكرًا جدًا؟

أحب هذا! هل هناك أي طريقة لحظر المقتطفات من الظهور في الرسائل الخاصة؟

لقد جربت هذه المكونة، وهي لا تعرض مقتطفات في الرسائل الشخصية. :thinking: