Development #58367 » tiles-actus-pagination.html
1 |
<! -- |
---|---|
2 |
Listes des actus choisies avec pagination |
3 |
option : "paginate_by" (nombre de ) |
4 |
--> |
5 |
|
6 |
<h2>{{ cell.title }}</h2> |
7 |
|
8 |
<ul class="actus--list tiles--list"> |
9 |
{% for fiche in json.data %} |
10 |
<li class="actus--item tiles--item"> |
11 |
<a
|
12 |
class="tile tile-actu" |
13 |
href=" |
14 |
{% if fiche.fields.typecontenu_raw == 'externe' %}
|
15 |
{{ fiche.fields.urldetail }}
|
16 |
{% else %}
|
17 |
{{ portal_url }}themes/tao/detail-actualite/{{ fiche.id }}/
|
18 |
{% endif %}"
|
19 |
>
|
20 |
{% if fiche.fields.image %} |
21 |
<picture class="tile--picture"> |
22 |
<img class="tile--img" loading="lazy" src="{% make_public_url url=fiche.fields.image.url %}"/> |
23 |
</picture>
|
24 |
{% endif %} |
25 |
|
26 |
<div class="tile--body"> |
27 |
<p class="tile--date">{{ fiche.fields.date|date:"d M Y" }}</p> |
28 |
<h3 class="tile--title">{{ fiche.fields.titre }}</h3> |
29 |
<p class="tile--resume">{{ fiche.fields.resume|linebreaksbr }}</p> |
30 |
</div>
|
31 |
</a>
|
32 |
</li>
|
33 |
{% endfor %} |
34 |
</ul>
|
35 |
|
36 |
{% include "combo/pagination.html" with paginate_by=10 %} |
37 |
|
38 |
|
39 |
|