Install this theme component
Works great alongside Topic List Thumbnails in “list” mode!
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.
Great, a blog-like topic listing (together with Topic List Thumbnails Component)!
Can it be restricted by category like the other component?
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).
You’re right, sorry about that. Should be fixed now
Unsure if I am missing something, but I can’t get this theme component to work
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
In testing, all features of topic list previews have been disabled
Last month there was a change, unfortunately but I removed the TLP instead using:
Currently my website is working well with these 2 theme-components
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 anyhow, will try and rebuild without the TLP-plugin
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.
I just want to confirm everything is working so well for now
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!!
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 .
Recently, I left this blank but it doesn’t work.
When adding 1 or more categories it works.
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.)
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.
It can be possible to show last post instead original post in excerpt?
where did you adjust this setting?
edit* found it
This is a great theme component. It seems to be the case that to adjust the length of the excerpts you adjust the “topic excerpt maxlength” setting in /admin/site_settings… It also looks like if you change the length of the excerpt, it doesn’t change the excerpt shown for pre-existing topics, and if you want the change in length to apply to pre-existing topics, you need to make some kind of edit to those topics.
Is that right? Any way to have a change of excerpt length shown on the topics list apply to all topics, including pre-existing ones?
Yup - you just need to rebake the posts:
$ cd /var/discourse
$ ./launcher enter app
$ rake posts:rebake
I have two questions, please! Does this component allow the excerpt to be of the last/newest post in a topic? If it doesn’t, does this feature exist anywhere?
I see another user asked the same question about three posts above: