I have an view that uses the Unformatted list format and Show: fields.
I've added the fields to it and the view has _Content type: my_content_type_ filter.
I want to write a template file for the fields in that view, with the following code.
{% if field_name == 'field_photo' %}
...
{% elseif field_name == 'field_something_else' %}
<div class="something">
{% for item in items %}
{{ item.content }}
{% endfor %}
</div><!-- .something -->
I don't know which name to use for the template file.
I've tried the following names, but they don't work. MY_CUSTOM_TYPE stays for the content type I have set in filter for that view.
- field--MY_CUSTOM_TYPE.html.twig
- field--node--MY_CUSTOM_TYPE.html.twig
What is the correct filename for the template file I am trying to use?