Discourse Tooltips

AI-generated summary

The Discourse Tooltips plugin, an official tool maintained by the Discourse team, enables previewing topic contents on hover. It is installed via app.yml and not as a theme component, as it requires server-side data not accessible via client-side JS alone pfaffman. While some users note its theme-like behavior volanar, others clarify its plugin nature due to data-loading requirements. There’s discussion about potentially converting it to a theme component JammyDodger, but awesomerobot recommends using the newer, actively maintained theme component version instead, as the plugin may be retired. Some users report compatibility issues with newer Discourse versions haozi. For support, bugs, UX, or feature requests, users are directed to post in the appropriate Meta categories tagged with tooltips. The plugin currently shows tooltips on topic lists, but not on topic references within post text pfaffman. Loading content via API on demand is technically possible but may cause performance issues with multiple tooltips per page pfaffman.

:discourse2: Summary Discourse Tooltips allows for the previewing of the contents of topics on hover.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-tooltips
:open_book: Install Guide How to install plugins in Discourse

Features

In the future the plugin will show more tooltips but this seemed like a good start :slight_smile:

Last edited by @JammyDodger 2024-06-03T22:01:04Z

Check documentPerform check on document:
61 Likes

The error is correct. This is not a Discourse theme. :slight_smile:

You would need to install the plugin in your app.yml. :+1: There’s a link to some instructions in the OP.

4 Likes

Thanks, I didn’t notice. It’s just that the functionality is more like a theme component than a plugin :roll_eyes:

1 Like

To be honest, this is quite an old plugin so there’s a chance it could be converted to a theme component now. I know some of the others have made that leap. I’m afraid I don’t know specifically if it would be possible with this one though. :person_shrugging:

3 Likes

It does add the topic contents to the load, so it can’t be done in a theme component. The data that it displays isn’t available without the plugin.

5 Likes

Does this also create a tooltip for topics referenced in text of posts? Also, would using the API of Discourse and loading the topic content on demand (thereby not requiring it to be a plugin, merely a JS-based enhancement) be a solution?

1 Like

I don’t believe so.

If you don’t mind the extra API call from the browser (a problem if you do it many times on a single page), it should work.

1 Like

Seems not work well with latest discourse.

Indeed, not much reason for this to be a plugin anymore

Would recommend using the theme component going forward, we will eventually retire the plugin.

1 Like