I have a website with a photography portfolio that I am migrating over to kirby. How can I make it so the user can add anchored links to the photos uploaded into kirby. I looked every where for a solution, but there does not seem to be a way to serve all of the files saved into a page on panel into a gallery and have each photo anchored with a link. If only there was a way to add this function to the image editing field in panel. I added a url to image panel but that did not seem to work. When I click/hover over the image during testing nothing happens -nothing is anchored to any of the images even though there is one attached to the images’ meta. I am using the kirby-images plugin.
Is the link correctly printed if you inspect the source code?
Have you changed the name of the field in your blueprint and in the files’ meta text files?
No JavaScript preventing a regular link click?
When I inspect the page the photos are anchored to their internal links that go to themselves, but not to the url that I set the to with the the url field that I added to images in panel-furthermore the images still do not appear to be anchored when I try to click on them. Sorry if this is confusing-I thought this would be a simple thing, I just started using kirby.
As I said, you should rename your field from url to link, otherwise you have the problem that it prints the url of the image instead of the link you want to link to.
Did not render the gallery at all, even when I changed the field name to link.
However the gallery rendered when the anchor portion is taken out of the code. The link is also still the same when inspected, I know its probably something simple I am missing here.
That’s a bit weird, why should the images disappear if you put an anker tag around them? Are they really not rendered or just not shown (have you checked the source code). If nothing is rendered on the page with the code, please enable debugging in your config, maybe there is some PHP error:
c::set('debug', true);
I don’t see what should be wrong with the code.
Without actually seeing the content of the meta data files and your actual code, it’s a bit hard to debug from remote.
Please check again if all meta data files have the correct field names. Also, have you cleared the cache?