This is now a Theme Component but has the option to add a complementary plugin.
Repository: get the code here: https://github.com/paviliondev/discourse-tc-topic-list-previews
Install guide: Install a theme or theme component
Install this theme component
This can be complemented with the ‘sidecar plugin’: https://github.com/paviliondev/discourse-topic-previews-sidecar
to add the following features:
- ‘actions’ (bookmarking, linking and liking from Topic List)
- Thumbnail Picker in the Topic Meta Editor. (Pick any thumbnail from the entire Topic using a simple UI)
- Optionally suppresses links in excerpts to make them look a lot better
The sidecar also includes some experimental features:
- Colourisation of background based on dominant colour of the thumbnail
- Processing of the thumbnails to remove any black borders (critical to determining the best dominant colour).
- Option to recreate thumbnails on rebuild of Topic Post to allow you to quickly manage border elimination on an individual Topic basis.
Plugin install guide: Install plugins on a self-hosted site
You need at least the Theme Component, the Plugin is optional.
Works really well with Discourse Bars 🍻 🍸 (a sidebar framework)!
Examples: check out the list further down.
Request a feature or Report a bug: as a reply to this topic
Donate: we are reviewing our donations system. Please check back later :).
Maintainers: @merefield
Overview
Topic List Previews allows you to:
-
Add images, excerpts, and topic stats to topic list items; and
-
Change the layout and style of topic list items
-
Add ‘Featured’ topics above topic lists and topics.
-
Add User Wall to User’s activity page (aka ‘Portfolio’ Feature).
- Adding the sidecar plugin (for those who can) affords you more features:
- ‘actions’ buttons on Topic List (bookmarking and liking)
- Thumbnail Picker in the Topic Meta Editor.
- Suppresses links in excerpts to make them look a lot better (long links in excerpts in Discourse can mess with layout)
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):
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
The main and Discovery settings are in Settings → Plugins. The Category equivalent are in each Category’s Settings.
Examples in the Wild
-
Real-Time VFX, which uses thumbnails and excerpts.
Contributors
Many folks have contributed to the development of this component through both feedback, development work and funding. In particular: