Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Add docs for chunking in Antlers

Offen
#1,289 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
35/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
laravel, php
Bereich
documentation

Rechercherichtung

Read the chunking example in the issue and follow the link to statamic/cms pull request 9157 for the feature details. Find the existing Antlers documentation for collection tags and explain the chunk tag, including count, total_chunks, and total_items; clarify how the example applies to collection tags and query builder fields. Done when readers can understand and adapt the example.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Missing Documentation

Applies to the collection tag but also could be assets fields etc.

For https://github.com/statamic/cms/pull/9157

Dumping stuff I tested with:

{{? $chunked_count = 0 ?}}
{{ field chunk="3" }}
<div class="border p-4 mb-4">
    <b>Chunk {{ count }}/{{ total_chunks }}/{{ total_items }}</b>
    {{ chunk }}
    {{? $chunked_count++ ?}}
    <li><a href="{{ url }}" class="text-teal font-medium text-lg mb-4">{{ title }}</a> ({{ chunked_count }}/{{ total_items }})</li>
    {{ /chunk }}
</div>
{{ /field }}

Where {{ field }} is either {{ collection:some_collection }} or {{ some_query_builder }} (like an assets fields).

chunked_count is a way to count items across chunks as count in a chunk would only go 1-2-3-1-2-3-1-2-3...

CleanShot 2024-03-22 at 10 57 16

Vorherrschende Sprache
PHP
Sterne
133
Forks
405
Ø Merge
21 Std. 45 Min.
Gemergte PRs (30 T.)
12

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus statamic/docs

Alle Issues in statamic/docs

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.