1

I can retrieve only the image title from the below code, I can't see why the image URL is showing as empty? its a global handle 'brand' and asset field 'logo':

{% set image = brand.logo.one %}

<a href="/">
    <img class="logo" src="{{ image.getUrl() }} alt="{{ image.title }}">
</a>    
  • Does your volume has public urls? That's mostly the issue when someone asks this question – Robin Schambach Jul 10 '18 at 10:22
2

Thanks to Andrew Fairlie for pointing out I need to make sure Assets in this volume have public URLs set

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.