Score:-3

Custom field values in View for unformatted list

cn flag

I have a view (Values_culture) and I set up the views-view-unformatted--values_culture.html.twig file as a template for that view.

In my case, I have a field - field_link_to_the_kb_section to enter the website URL

I tried the following way to add that value to the <a href> :

<a href="{{row.content['#row']._entity.field_link_to_the_kb_section.value}}" target=""><img src="sites/default/files/2023-08/kbs.png" alt="values" class="box-image" /></a>

But It didn't return the URL.

How can I properly customize the view templates and print each item from the specific content type mentioned in the view?

id flag
What does "it didn't work" mean, technically?
harikris avatar
cn flag
It didn't print the URL in `<a href="{{row.content['#row']._entity.field_link_to_the_kb_section.value}}"`
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.