In a discussion titled “Embedding Topic topic-map or Topic Summary on Other Site” under the WordPress category, Curtis_Kephart proposes embedding Discourse topic-maps — compact, summary-style widgets — onto external websites, particularly WordPress sites, as a space-efficient alternative to full comment threads. He references existing discussions on embedding Discourse comments via JavaScript and the wp-discourse plugin. joebuhlig confirms a working implementation exists but is not yet publicly deployed, as it requires a pending pull request (PR) to the wp-discourse plugin to expose necessary data. The code is available in the wpdc-embed-topic-map repo, sponsored by Curtis_Kephart and the RStudio team. simon suggests the feature might be better implemented as an extension rather than core plugin addition, though hooks could be added if needed. joebuhlig submitted a large PR (#321) to wp-discourse to enable this, which includes enhancements to the popular links section. Community members, including jtbayly, express enthusiasm and offer to test. As of post 13, the PR has not yet been merged and failed CI checks for stylistic and functional issues. The widget aims to display a compact summary with a link to the full discussion, as shown in example images provided by Curtis_Kephart.
I seem to recall readiing that topic-maps are not generated until at least one reply occurs. So, perhaps I am making a different request, asking for advice to embed a widget with a similar set of summary information that could be embedded off-site.
Why?, I desire to embed comments on off-site pages with limited space. Rather than the current embedding option that shows a list of comments, I feel these topic-maps are efficient summaries of discussion.
My goal would be a widget that looks something like:
Currently we have a completed WordPress plugin that can do this, but the question I have right now is whether or not it would be accepted as a PR on the wp-discourse repo. We can develop the settings and such for it, but don’t want to go through the trouble if it’s not an acceptable expansion on the core plugin.
Would someone from the team be willing to weigh in on this one?
I really like this idea. I’m not sure about adding it to the wp-discourse plugin. Would it be possible to get it to work as an extension to wp-discourse? If any additional hooks were required to get this to work, they could be added to wp-discourse.
The current method is simply with code added to the functions.php file. But the data required wasn’t being passed along. Let me see if there’s a way to add a hook to collect it and if so, we’ll submit a PR for it.
Any news on this? Or any chance you can share the code you are currently using? Or even just point us to an example site where it is deployed, @joebuhlig?
It’s not deployed publicly anywhere as it needs some filters which will be submitted to wp-discourse as PRs. But for now, the existing project lives here:
@simon, I’m aware that this is quite a large PR. The biggest piece is the pulling of the popular links section. That mechanism needed quite a bit of work. So if we need to scale this back to be acceptable, just let us know.