Fetch Link field Label and Link separately in views-view-fields template
How can I fetch label and link field in views-view-fields–VIEW-NAME-HERE.html.twig file
So far I have tried
{{ fields.field_action_link.content }} give me the anchor tag prebuilt (html) {{ fields.field_action_link.0.url }} {{ content.field_action_link[0]['#url'] }}
but none of them seems to work for me. I am able to retrieve all other fields including image field.
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.