I am trying to incorporate the attribute data-embed-popup-caption-template into my html and have copied it into my html as described here: https://forum.photo.gallery/viewtopic.php?f=67&t=10180
data-embed-popup-caption-template="<strong>{{basename}}</strong><br>{{mtime}}<br>{{description}}"
but am getting console errors:
Uncaught ReferenceError: description is not defined
at eval (eval at O (compile.ts:32), <anonymous>:3:138)
at Object.e.render (render.ts:66)
at Object.addCaptionHTMLFn (embed.min.js:2)
at u.V.update (embed.min.js:2)
at yi (embed.min.js:2)
at updateCurrItem (embed.min.js:2)
at u.init (embed.min.js:2)
at embed.min.js:2
at Object._f.popup (embed.min.js:2)
at HTMLDivElement.<anonymous> (embed.min.js:2)
Demonstrations:
https://selfdrive.com.na/photo-embed.html This works fine - no attribute.
https://selfdrive.com.na/data-embed-popup-caption-template.html Errors with attribute
I have updated the embedded IPTC/EXIF info in the first image (map.jpg) so that some fields are populated:
There doesn't seem to be any more documentation on the attributes - or not that I can find, anyway.
Carl - could you enlighten us all on how to use what could be a very useful function?