Topic List Excerpts Theme Component

By default, Discourse only displays topic excerpts for pinned topics. This theme component allows you to enable excerpts for unpinned topics as well.

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

37 Likes

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

Can it be restricted by category like the other component?

5 Likes

Sure, I just added a category setting:

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

11 Likes

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 Likes

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

https://github.com/discourse/discourse-topic-excerpts/commit/301f77e50c8ed231d7e4c8cb6ce69d35c7e06707

7 Likes

Unsure if I am missing something, but I can’t get this theme component to work :frowning:

When component is enabled all is rendered exactly the same as when disabled. Same happens when previewing. Have updated discourse to 2.5.0.beta5 ( f2647f1f36 ) component to latest release.

Installed plugins are as follows

Repository Status
discourse latest-release +89 Up to date
Official Plugin discourse-checklist decbc45 Up to date
discourse-custom-wizard 5f07814 Up to date
discourse-events ddaa6b5 Up to date
discourse-sidebar-blocks e8ecaf2 Up to date
discourse-topic-list-previews 1e9a400 Up to date
Official Plugin docker_manager f2a9499 Up to date

In testing, all features of topic list previews have been disabled

1 Like

Last month there was a change, unfortunately but I removed the TLP instead using:
https://github.com/discourse/discourse-topic-thumbnails
https://github.com/discourse/discourse-topic-excerpts

Currently my website is working well with these 2 theme-components

3 Likes

Thank you. What version of Discourse and Topic List Excerpt do you use? I wonder if the issue can be that I have the latest 2.5 beta :thinking: anyhow, will try and rebuild without the TLP-plugin

1 Like

There’s no need to use this Theme Component with the TLP plugin? TLP delivers excerpts anyway and always has done. Why did you want to install this on top of TLP instead of just changing the TLP settings to add excerpts? They will likely step on each others toes.

You only need this TC if you are using neither the TLP plugin or the TLP TC.

6 Likes

I just want to confirm everything is working so well for now

3 Likes

hi, I’m using this component and the Excerpts seem to render wrong. As might appreciate, the text doesn’t include a \newline right after the tags. Anything I’m missing to set this up ? Thanks in advance!!

1 Like

Hi! I’m using this theme component for a poetry community and I would like that the excerpts do not escape new lines (so verses are still in separated lines, even in the excerpt).

I assume I must create some kind of simple (?) plugin to implement this functionality. I have been checking the Discourse code but I didn’t find where should I look in order to change that.

I would be really grateful if you could give some hint :slight_smile: .

Thanks!

1 Like

Recently, I left this blank but it doesn’t work.

When adding 1 or more categories it works.

1 Like

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 Likes

Found something! On mobile the text runs a little off the side when paired with topic preview.

This is an iPhone running the latest version of iOS.

1 Like