Now the data-pid attribute may be specified on the img tag. Added line in readme.md about the data-pid attribute.
ISSUES:
Currently works whether or not the galleryPIDs: true option is set.
Not sure if that's correct or not.
If galleryPIDs option IS set to true, then the page should
automatically open the image with the custom PID in the URI, but this is
not working properly yet. Only default PIDs will open. If a custom PID
is in the URI when the page loads, as soon as the user clicks on ANY
gallery image, the image with that custom PID will open, rather than the
one the user clicked on.
As you said, if you use the custom pid PhotoSwipe it won't open the slide for you,
I think this is a bug of PhotoSwipe, so I'd like to postpone your pull request untile PhotoSwope fix this bug.
Now the
data-pid
attribute may be specified on theimg
tag. Added line in readme.md about thedata-pid
attribute.ISSUES:
galleryPIDs: true
option is set. Not sure if that's correct or not.galleryPIDs
option IS set totrue
, then the page should automatically open the image with the custom PID in the URI, but this is not working properly yet. Only default PIDs will open. If a custom PID is in the URI when the page loads, as soon as the user clicks on ANY gallery image, the image with that custom PID will open, rather than the one the user clicked on.