Discourse Tooltips

: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:
58 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:

2 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.

4 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?

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