Excertos da Lista de Tópicos

: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 curtidas
MD Topic List component
Best way to implement Excerpts in topic list?
Topic List Previews (legacy)
Topic preview text
MD Topic List Mobile component
Topic List Previews (TLP)
Topic Author
All links to categories broken?
Topic List Latest-Post Excerpt
Information about topic is not updated when using new & unread topics banner
Compact and AI Expanded
Displaying Views in Topic view (with no replies)
Topic List Latest-Post Excerpt
Google complaining about slow Interaction to Next Paint (INP) on Discourse sites
Discourse AI Topic Summary :robot:
Formatting breaks when Topic (List) Excerpts theme component used with RSS Polling plugin
Display first 5 lines of every post
Discourse AI Topic Summary :robot:
Topic List Thumbnails
Display post content in homepage
Display post content in homepage
Is there a way to display topic contents in category view?
Topic List Thumbnails
Using Discourse as a social media platform
How to disable topic excerpts in category page
Potential way to hide ignored users from topic list?
Display in the topics list in homepage also the body topic
Display replies and likes count in mobile view
Is there a plugin to make my forum a shop?
Why do excerpts include some HTML tags, but not others?
Latest activity list as for replies
How to add topic excerpt to all my topics
How to show part of the text under the topic head?
Static content on Category main page
Discourse Category Lockdown
How can I keep post views on lists
How to change the topic excerpt from the first post to the last post?
Discourse Docs
How to keep line breaks on excerpts?
Customizing your site with existing theme components
Expand new posts in topics in "Unread" and "New" to full summary

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

Can it be restricted by category like the other component?

7 curtidas

Sure, I just added a category setting:

13 curtidas

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 curtidas

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

9 curtidas

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 curtidas

A configuração de categoria funciona, mas a configuração de tag não está funcionando na versão mais recente do Discourse.

2 curtidas

@th21 o tratamento de tags agora deve estar corrigido - desculpe pela demora!

3 curtidas

Uma postagem foi dividida em um novo tópico: Ser capaz de exibir trechos apenas para algumas categorias em /latest

Um post foi dividido em um novo tópico: Diferenciar conteúdos das linhas da lista de tópicos usando cores diferentes

Olá, por que o “leia mais” está cinza no meu site, mas no seu está azul? Como posso mudar a cor?

1 curtida

Olá, você pode usar CSS para personalizar.

Por exemplo, usando a cor predefinida para links. Embora, você possa fornecer a cor que desejar.

.topic-excerpt-more {
    color: var(--tertiary);
}
1 curtida

Olá, este componente é renderizado na página do plugin de documentação do Discourse e torna o trecho clicável para o URL da discussão do Discourse, não para o URL do documento. Há alguma maneira de evitar que isso aconteça?

Olá, é possível mostrar a última postagem em vez da primeira?

2 curtidas

Tenho um plugin + componente temático para isto: Topic List Latest-Post Excerpt

2 curtidas

Existe um problema com o componente de tema no desktop?

quando o habilito, ele mostra avatares assim:

atualizei meu discourse hoje

EDIT: Existe uma maneira de limitar o número de linhas/caracteres para o trecho?

2 curtidas

Sim, o mesmo aqui

O último funciona bem quando deslogado, mas outras rotas quando right-sidebar-blocks estão ativados acontecem isso

O botão de alternância de trecho não está visível em celulares. Por design, um acidente ou estou perguntando muito cedo?

Eu amo isso! Existe alguma maneira de bloquear trechos de serem exibidos em mensagens privadas?

Já experimentei este componente e ele não mostra trechos em mensagens pessoais. :thinking: