Closed peirix closed 3 years ago
Hi @peirix!
Thanks for taking your time submitting an issue!
Do you have the option "Assets in this volume have public URLs" (asset source settings in admin/settings/assets
) enabled and did you correctly configure the base URL for this asset volume?
For more info, see https://craftcms.com/docs/3.x/assets.html#volumes
Look forward hearing from you!
Hi, yes. I've set the public URL, using an alias @web/bilder
Don't know if that has anything to say. But checking it again now, I got one step closer, getting this:
Hi @peirix,
Did you actually change the settings after our suggestion? If this is the case, do you have the same issue when you create a new entry?
Hi. I went in and resaved the assets config, trying both to hardcode the url and using the alias. But still getting the same issue, even with new entries.
I even deleted the asset config, made a new one (with a new name), and getting the same issue. The image is showing correctly in the wysiwig, but not in the template.
@peirix Thanks for checking it! Can you please send me a screenshot of the fieldvalue in your database (the one you are trying to print on the frontend)?
@dejury Do you mean from the craft_content
table?
Just went in to check again, and when I add an image, it shows up correctly in the wysiwig, but then if I save and go back to the entry list, and then go back into the entry again, the image is no longer showing, and the URL is as I showed above.
@peirix I can't reproduce this issue, even with the exact same value in the field. Can you provide me with the details shown on the CraftCMS page "Utilities > System Report". Maybe this is a specific CraftCMS version issue.
Okay, so I had a bad feeling about this, and ended up just deleting the whole installation and starting over, and now it works. So I'm not sure where in the process I managed to screw this up, but maybe because I installed the plugin before adding any assets or sections? Not sure. Sorry to steal your time on this :/
I’m glad you have a working plugin now. In a meantime, we’re going to test our plugin with this scenario in mind, so any future users won’t have to experience the same issue. Thanks for your time and patience. If I can help or assist you with any other questions, I am happy to help you!
I have a fresh Craft install with only this plugin loaded, and in there the images are not being parsed with the correct URLs
Is this something to set up in a config somewhere?