1. copy views-view-unformatted.html.twig from core/views/templates and paste in your custom theme folder .
2. if you want to theme for a particular view/ page naming convention below
views-view-unformatted--[view name]--[page/block id].html
suppose I have View name is [exhibition_resources] and page id [page_1] custom view twig tpl name is
views-view-unformatted--exhibition-resources--page-1.html.twig
for print field value follow below code
{{row.content['#row']._entity.field machine name.value}}
for getting image and pdf url kindly use below code
{{file_url(row.content['#row']._entity.field_pdf.entity.fileuri)}}
No comments:
Post a Comment