This is a Theme Component but has the option to add a complementary plugin.
| Summary | The original Topic Preview component that allows you to add images and excerpts (and more!) to the Topic List whilst being able to configure what additions appear on what list. | |
| Repository Link | GitHub - merefield/discourse-tc-topic-list-previews: Enriches the content and layout of topic lists · GitHub | |
| Install Guide | Installing a theme or theme component | |
| Sponsorship | Please consider becoming an ongoing sponsor of my open source work at a level that suits your or your organisation’s resources and needs to ensure this component gets the maintenance it deserves and continues to work for your site in the future. |
Enjoying this Theme Component? Please
it on GitHub
Install this theme component
Works really well with Discourse Bars 🍻 🍸 (a sidebar framework)!
Overview
Topic List Previews allows you to:
- Add thumbnails, excerpts, participant avatars and topic statistics to topic lists
- Use traditional rows, responsive tiles or masonry-style layouts
- Configure previews independently by topic list, category and tag
- Control thumbnail size, resolution, fallbacks and display limits
- Highlight selected topics with larger featured tiles
- Add ‘Featured’ topics above topic lists, filtered and ordered as required
- Enhance full-page search with thumbnails, excerpts and author details
- Add a User Wall to activity pages - the ‘Portfolio’ feature
The Sidecar
This can be complemented with the ‘sidecar plugin’: https://github.com/merefield/discourse-topic-previews-sidecar-pro
This is currently a private repo for which my GitHub sponsors who contribute at least $7/month gain access.
to add the following features:
- ‘Actions’ — bookmark, share and like directly from the topic list
- Thumbnail picker — select any image from the entire topic
- Dominant-colour backgrounds based on the selected thumbnail
- Automatic removal of black borders from YouTube thumbnails
- Optional thumbnail recreation when rebuilding a topic post
- Configurable excerpt length and optional link removal
- Accepted-solution and Q&A answer previews
- Option to show the latest post’s excerpt
- Option to direct preview clicks to the latest post
- Thumbnail previews in search results
- Per-user preference for lower-resolution thumbnails
Plugin install guide: Install plugins on a self-hosted site
You need at least the Theme Component, the Plugin is optional.
These settings can be applied to all or selected topic lists on a site-wide or category-specific basis.
This flexible feature-set allows you create a variety of different topic list styles, including
Basic Style
Relevant settings
- topic list thumbnail
- topic list excerpt
- topic list action
Pinterest (Masonry) Style aka ‘tiles’
Relevant settings
- topic list tiles
- topic list thumbnail
- topic list excerpt
- topic list action
- topic list thumbnail width
- topic list thumbnail height
which has wide format option (behind setting topic_list_tiles_wide_format):
This works responsively so will collapse to masonry format if not given enough width (and vice versa).
Featured Images
Relevant settings
- topic list featured images tag
- topic list featured images count
- topic list featured width
- topic list featured height
- topic list featured title
- topic list featured excerpt
- topic list featured order
Toggling Excerpts:
I introduced this a while back for use with my AI Topic Summaries plugin.
You can use it for TLP:
Examples in the Wild 
Support
I do not provide any guaranteed support for free. I can provide support to businesses or institutions who sign up to one of my GOLD or PLATINUM monthly Sponsorship tiers.
There is also a one-off bug hunt option.







