Theme listings: expose exact visible item totals on archives

Aperta
#727 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
laravel, php, postgresql
Ambito
api, backend

Direzione di ricerca

Start with the existing ListingView::$items and Pagination::$total properties to see how the current page and page count are built for category and date archives. Work out where the visible item count could be computed with the same language, visibility and taxonomy filters the listing already applies. Done means the theme can read an exact count, or a documented null where it is not calculated. The maintainers should confirm the null-versus-count design before any implementation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/site area/themes type/enhancement when/later

An archive theme receives ListingView::$items for the current page and Pagination::$total for the number of pages, when available. It cannot display the exact number of stories in a public category or date archive. Multiplying pages by page size would overcount the last page.

Please expose the exact visible item count where available, or a documented null when the listing does not calculate it. The count should follow the same language, visibility and taxonomy scope as the listing.

Lingua principale
PHP
Stelle
1
Fork
1
Merge medio
1h 40m
PR unite (30g)
143

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temecms/teme

Tutte le issue di temecms/teme

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.