Browse Source

search results from views

master
rdrew 1 week ago
parent
commit
c14c3e5970
  1. 6
      templates/views/views-view-fields--solr-search-content.html.twig

6
templates/views/views-view-fields--solr-search-content.html.twig

@ -1,12 +1,11 @@
{{ dump(fields) }}
<div class="grid-item"> <div class="grid-item">
{{ fields.did_image.content }} {{ fields.did_image.content }}
{% for field in fields -%} {% for key, field in fields -%}
{%- if key != 'did_image' -%}
{{ field.separator }} {{ field.separator }}
{%- if field.wrapper_element -%} {%- if field.wrapper_element -%}
<{{ field.wrapper_element }}{{ field.wrapper_attributes }}> <{{ field.wrapper_element }}{{ field.wrapper_attributes }}>
{%- endif %} {%- endif %}
{# {%- if field.label -%} #}
{%- if field.label and field.content|striptags|trim is not empty -%} {%- if field.label and field.content|striptags|trim is not empty -%}
{%- if field.label_element -%} {%- if field.label_element -%}
<{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }}</{{ <{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }}</{{
@ -23,5 +22,6 @@
{%- if field.wrapper_element -%} {%- if field.wrapper_element -%}
</{{ field.wrapper_element }}> </{{ field.wrapper_element }}>
{%- endif %} {%- endif %}
{%- endif -%}
{%- endfor %} {%- endfor %}
</div> </div>

Loading…
Cancel
Save