I have a custom content type which collects one image and one URL per node. I have the Slick module along with Views set up to cycle through these images on the home page. I haven't been able to make the carousel images link to the external URLs. In Views I have this:
In the Global: Custom text field, I have this:
<a href="{{ field_library_homepage }}">{{ field_library_photo }}</a>
It's not using that markup. What's most confusing is that the images are displaying in the carousel. I have the photo field hidden and Drupal isn't using the custom text so I don't know how those images are being accessed.
What step have I missed to make this work? Thanks!
{{ field_library_homepage.0.value }}
or{{ field_library_homepage.value }}
?{{ field_library_homepage }}
equals<div class="something">http://external-site.com</div>
. Thus, you have markup around your url text. You can remove the markup by following my answer{{ field_library_homepage }}
. @prkos There is a link setting in the Slick config. If I choose it, it prints the URL and makes it clickable but doesn't make the image clickable. @NoSssweat In Views, I have that field set to URL Only and Show URL as plain text.