Theme listings: expose exact visible item totals on archives

Abierto
#727 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
laravel, php, postgresql
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
PHP
Estrellas
1
Forks
1
Merge medio
1 h 40 min
PR fusionados (30 d)
143

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de temecms/teme

Todos los issues de temecms/teme

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.