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>    
2

1 Answer 1

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 and acknowledge you have read our privacy policy.

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