I’m writing to see if anyone has ever looked into adding an element like this on their discourse platform.
My boss is interested in exploring if we could present the user with an image with different hotspots on the discourse platform itself. It would act as a sort of map, with information contained in each ‘spot’. I’d love to know if something like this is even possible before exploring how or who could help with this.
You can create an image map with html using map and area tags. It would be easy to add one to a custom header. To add the tags to a topic or banner would require some javascript.
Here’s an example of something similar. We have someone doing a drawing of a collection of buildings, and we want people to be able to click on each building and read some textual descriptions.
This example is for a plug-in for other platforms, but I’m looking for a way to accomplish this on our site, as you said a custom header might be best. Is it really as easy as using html? I’m not sure how elegant we can make it - or if it needs to be barebones using html.
@schungx Yes, an option to hide it would also be good - I think people would navigate around easier using the category view
Yes, that’s a little more complex. It would require some javascript, but it’s still doable. You could also create the map on another site and embed it as an iframe.
Edit: If all you need is to display and hide information panels when a button is clicked, you could get quite far with a customization using html and css. The example you gave is using buttons positioned over an image. The tricky part would be positioning the buttons.
Сегодня я как раз искал нечто подобное, но с использованием Markdown и встроенного функционала Discourse. Я работаю со своей семьёй над идентификацией людей на фотографиях и хотел бы иметь возможность создать тему с JPG-изображением в первом посте, чтобы участники могли отвечать, обсуждать фото и описывать всё, что знают о нём и о людях на нём. Первый пост мог бы быть вики-страницей, которую можно редактировать, добавляя аннотации, привязанные к определённым участкам фотографии. При наведении курсора на фото эти аннотации отображались бы как интерактивные точки, на которые можно нажать, чтобы прочитать описание соответствующего места.
Я почти уверен, что такого решения пока не существует, и просто выдвигаю идеи. Возможно, это могло бы стать новым плагином, вдохновлённым Discourse Footnote, который также обеспечивает развёртывание ссылок внутри текста.