Hmmm... I copied/pasted your text into the plone page (in the 'source code' view), replaced with url of a small image on my site (the .png) and the full size image (the .jpg). But, it shows the full size image on the page, not the small one. Also, upon clicking on that full size image on the page it gives the image as a popup (from the medialog.magneticpopup) and and this error message in the middle: "There was an error loading modal". Perhaps there is an interaction with the medialog.magneticpopup. Thanks for continuing to try, I find these patterns cool.
If you add the medialog.magneticpopup you should not add manual image popup.
If you want manual popup don't install the add on ( or modify the javascript to check for a class)
@dgroos little correction, for what ever reason it seems you need an extra option data-pat-plone-modal="image: true"
Following example works for me. You may want to add an extra style (within your css/less files) .plone-modal-content img { max-width:100%;} to make the image fit within the overlay.
Seems like it might work though unable to fully test as per @espenmn's comment above as I have medialog.magneticpopup in place (which I will be using!) Thanks @agitator! (PS @espenmn let me know if the doc work would be helpful)
Is there any easy way to get image captions and image popups working yet (using Plone 5.1.2.1 (5112))?
Preferably that a content writer, not developer, can tick the missing caption box then adding an image and default/configurable image behavior will provide popup/zoom.
Before posting, reluctantly, I have spent hours reading forums, looking at addons (prettyphoto, etc. with their insufficient doco) so now at a loss and behind schedule with my project, so as not to waste other's time!
Probably @jplono if you have an example put a link to it, don't just say "yes i have"! Thanks - Plone5 is great - just difficult to use in places and really hard to get others (devs) on board.
Thank you. I actually read the whole thread and many others!
Ideally was looking for a solution without using any addons (minimising bad experiences by using as vanilla a Plone as possible).
I dismissed medialog.popup as it has no documentation (or links to nonexistant documentation) which inspires no confidence in what might be a great solution.
Thanks again.
If you read the thread, you see that I made this add-on to help someone that did not get it to work by following the advices. So, I have not used this add on myself ).
If you read it again, you will see that it is just adding some javascript which you can copy to your theme if you prefer that (and you could add a class that you choose in TinyMCE if you need the users to be able to choose which images to 'pop-up.