💬 | Drupal core | Printing items per page in twig template not triggering form submit on views template
🇰🇪Kenya Charles-Kevin-Njuguna
Instead of printing the 'Items per page' as {{exposed.items_per_page}}
, print it by excluding any other exposed filters such as {{exposed|without('filter_name_one','filter_name_two','filter_name_three')}}
.
This is how I'm doing it:
{% if pager %}
<div class="col-md-10 ms-md-4">
<div class="row d-flex align-items-center">
<div class="col-md-8">
{{ pager }}
</div>
{% if exposed %}
<div class="col-md-4 d-flex align-items-center view-filters">
<span class="me-md-2">{{'Show'|t}}</span>{{ exposed|without('field_question_right_category_target_id', 'field_state_transition_value') }}
</div>
{% endif %}
</div>
</div>
{% endif %}