if i enter a edit page view in the panel over “overview” i get a wrong URL for images in a structure field.
After reloading the page or opening it over the top breadcrump nav… the URL is correct.
I don’t really understand why it only works the second time. But can you try the following?
<img src="../../../blog/{{image}}"/>
You don’t really need the content folder or the sorting number in there anyway.
In my installation it works with your code, too. But I don’t have Kirby in a subfolder and maybe that’s what causes the problem? It seems like the kirby/ folder is missing in your GIF.
Nope. I have tried it on two other webservers because i don’t trust the ZendEnvironment here @work.
But the same results there: coming from overview… no image. reload or click breadcrumb: image.
It works for me, too. I even installed Kirby in a subfolder and added a RewriteBase but I still can’t reproduce this error.
Looking at your screenshots it does seem like the kirby folder is missing. So using the absolute code @texnixe suggested must work. For you it would be:
Overall the structure field entry is not intended to display images, so it really is sort of a hack. Once the client changes the uid for example, no images would be displayed.
You should really have a look at the snippetfield I mentioned earlier. It’s the same thing just using snippets as the entry.
I just tested it on your installation and it works flawlessly by the way: