Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop-up windows to show static distribution maps #37

Open
AnneBruneau opened this issue Apr 5, 2023 · 1 comment
Open

Pop-up windows to show static distribution maps #37

AnneBruneau opened this issue Apr 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@AnneBruneau
Copy link
Collaborator

@MortenHofft @thomasstjerne @CaroleSinou
How to create pop-up pages?

We have static distribution maps as png files for 100 Caesalpinioideae genera (more to come) that we would like to make visible on the portal. Is it possible to have an icone by the genus name on the taxonomy pages that leads to a pop-up with the maps? We want to avoid creating 100s of extra pages for these maps.

(maps are in assets/MimoseaeMaps)
thanks! Anne

@AnneBruneau AnneBruneau added the enhancement New feature or request label Apr 5, 2023
@MortenHofft
Copy link
Member

It isn't a standard Jekyll feature (and hence part of the hosted portal theme), nor a feature of the CoL widgets.

So you would have to add something custom to your site. It would require Javascript knowledge. And some integration with the CoL taxonomy pages.

My initial guess would be to have a long list of the genera that has custom maps, and then when showing a CoL genera page, then check if that genera is in your list, and if so add a button dynamically. And that button should then trigger a popup when clicked. It is possible, but it isn't something that can be done in 2 minutes (or an hour for that sake), it requires a bit more thorough knowledge about web development to get it working nicely I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants