Highest-Post Excerpts in Topic List

:information_source: Summary Adds the most recent post/reply excerpt to the Topic List serializer
:hammer_and_wrench: Repository Link GitHub - dsims/discourse-highest-post: Adds highest_post_excerpt to serializer
:open_book: Install Guide How to install plugins in Discourse

Features

Adds the excerpt from the topic’s most recent post (aka the post with the highest_post_number) to the TopicListItemSerializer.

Configuration

None for the plugin, but all the frontend UI related changes to actually see the excerpts are in a separate theme-component: Latest Reply Excerpt theme-component.

TODO

Limit to certain categories & tags?

:warning: While it attempts to be optimal, this does add extra queries that could impact performance.
:warning: “Whispers” are excluded, but there may be other unwanted posts I’m not aware of.

7 Likes

I am getting an installation error:

An error occurred: Import Error: about.json does not exist, or is invalid. Are you sure this is a Discourse Theme?

You tried to install the Plugin as a Theme or Theme component. That doesn’t work. You need to follow Install plugins on a self-hosted site

Oh, I didn’t notice it was a plugin. However I am not on a self-hosted site. My site is hosted by Discourse. Is it possible to install this plugin on a Discourse hosted site? I am trying to get the theme component Latest-Post Excerpt installed which depends on this plugin.

It depends on your hosting plan. Most hosting tiers only allow a limited set of plugins, which are installed by default.

Like Moin said, you’ll have to check your plan. My community’s hosting plan is limited to official plugins, which this is not.

1 Like

I am on the pro plan. There is no checkmark in the add-ons section for custom plugins on the plan detail page. I assume that means they are not allowed so I wont be able to install the Latest-Post Excerpt theme component. Thanks for pointing me in the right direction to find out how this works.