stacks-8.x-1.x-dev/modules/stacks_examples/stacks/widget-content-feed/article-content/ajax/ajax_article-content--default.html.twig

modules/stacks_examples/stacks/widget-content-feed/article-content/ajax/ajax_article-content--default.html.twig
{#
This needs to match the template name (except for the beginning ajax_ part)
#}

{# RESULTS #}
{% if grid.results  %}

  {# Loop through the results. Display a view mode. #}
  {% for row_num,node in grid.results %}
    <div>
      {{ node|view_mode_object('teaser') }}
    </div>
  {% endfor %}

{% else %}

  {# Display no results message. #}
  <p>No matching items found with the filter criteria.</p>

{% endif %}


{% if grid.pagination_type %}
  {# PAGINATION #}
  {# We need a wrapper around the pagination links so we can target them in the JS. #}
  <div class="ajax_results_pagination {{ grid.pagination_type }}">
    {# Set pagination type in this drop down. #}
    {# {{ 'default'|pagination(entity, grid.pagination_type) }} #}

    {# Grab pagination type from config. #}
    {{ grid.pagination_type|pagination(widget_entity) }}
  </div>
{% endif %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc