Topic List Latest-Post Excerpt

:information_source: Summary Displays the most recent post/reply excerpt in topic lists
:eyeglasses: Preview :exclamation:REQUIRES PLUGIN :exclamation:
:hammer_and_wrench: Repository https://github.com/dsims/discourse-topic-list-highest-post-excerpt
:question: Install Guide How to install a theme or theme component

In topic lists, this will display the most recent (aka highest) post excerpt below the title (or topic excerpt). It requires a plugin to actually have the highest-post data available.

Also includes settings to display the excerpt avatar, a reply icon, and limit excerpt rendering to a single line. There is also an option to show topic excerpt which is similar to Topic List Excerpts but works in a different way.

Screenshots

With default setting and show topic excerpts.

With avatars and limited to single-line:

With no topic-excerpt

TODO

Add setting to limit to certain categories?

11 Likes

I have searched for it for months. Thank you very much for this.

IS there a way to make it compatible with this plugin? Because in mobile its shows 2 times thé latested avatar

The latest post excerpt only works if i désactive thé other plugin

1 Like

Ah I didn’t notice that until now, thanks. I’ll look into making this component show the OP as the primary avatar when excerpt-avatars are enabled.

2 Likes

Added a setting to use the topic-creator avatar instead of latest-poster on mobile.

So you shouldn’t need that “Show both OP and last reply on mobile” component @David_Ghost

2 Likes

Thank you. Its works as expected but it’s weird to see 2 times the OP avatar on mobile. It should bé just the first one at the left

1 Like

I just pushed an update to the mobile styles that takes care of that.

2 Likes

The Topic List Excerpts component has a bug so I added a new option here to show topic excerpts so that component is not needed.

2 Likes

hey, is this theme component leaving any leaving any residual when it’s uninstalled?

i"m having issuess with “Topic list excerpt” now. As it’s shows much more text, it shows the avatars this way:

imagmza

but I’m not sure if there is any conflict with your plugin/ theme component

1 Like

I’m not seeing that, so let me know what you are using and I’ll try to reproduce:

  • Web Browser
  • Theme
  • Any other theme components?
  • Have you made any custom CSS changes/additions?
2 Likes

Thank you for help. I’m using chrome, the default theme, 5 or 6 theme components. I have already uninstalled one by one but its works perfect if i disable topic excerpts or enabling the safe mode.

I have some CSS codes for the logo and 2 or 3 things for the mobile view, i have already tested whitout it but i got the same problem as you Can see here: https://forumjogos.com.br

You Can try to reproduce by installing your plugin +TC, uninstall, and install thé topic list excerpt back

1 Like

Looks like a problem with this topic, where part of a url results in an excerpt with a long unbroken line:
ref_src=twsrc^tfw|twcamp^tweetembed|twterm^1793429561969193338|twgr^|twcon^s1_&ref_url=

Discourse is not removing the url from the excerpt and there is no max-width on the column so the word-wrap: break-word; doesn’t apply.

You might be able to fix this by adding this CSS which seems to force the long line to break even without a max-width:

.topic-list .topic-excerpt span {
    overflow-wrap: anywhere;
}

(My theme component also has a single line setting which would avoid this issue)

2 Likes

Ohh thank you very much. Very kind of you. Its working fine now and it was not a problem in your side.

Thats weird how a topic can break things. I tried so many solutions to try fixing it

Thanks again

2 Likes

Installed, but not used at all, can’t find the location of the plugin

1 Like

How can I Add setting to limit to certain categories?

I have installed this component, also set it for “default” theme, but I don’t see Latest Post appear

You can check the component again

Hey, you have installed the plugin too?

Thank you, I have checked the topic and installed the plugin before, it is working now, if there is any problem, I hope everyone can help me later.

1 Like

with this component, how can i limit to some categories?

thanks everyone

I’m also looking for a way so that when people click on the reply content (from the home page), the opened topic moves to the reply post, not the post of the topic creator.

It would move to the reply if you have read the topic before. I suppose the excerpt could be a link to the most recent post.