{# The next section iterates over all of the contenttypes, and prints a list of the five latest records of each of them. The 'magic' happens in the setcontent tag.. ct.slug ~ "/latest/3" concatenates the slug of the contenttype with /latest/3, so it becomes something like "pages/latest/3". #}
{% for ct in config.get('contenttypes') if not ct.viewless|default(false) %}
{% setcontent records = ct.slug ~ "/latest/5" %}

{{ __('contenttypes.generic.recent', {'%contenttypes%': ct.name}) }}

    {% for record in records %}
  • {{ record.title }}
  • {% else %}
  • {{ __('contenttypes.generic.no-recent', {'%contenttype%': ct.slug}) }}
  • {% endfor %}
{{ __('contenttypes.generic.overview',{'%contenttypes%': ct.name}) }}
{% endfor %}