Ambiguous "title" when browsing Entries
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 64/100
Línea de trabajo
Start from the control panel's Link/Entries fieldtype browse modal — the Vue components under resources/js that render the "List" and "Tree" modes (search for the list/tree toggle and where each entry's title is rendered). Determine what extra context is available per entry (collection handle, URI, title from other fields) and how multi-collection configs behave. Done when two same-titled entries in one collection, and duplicates across collections, are distinguishable in List mode, verified against the repro steps in the issue with a fresh Statamic install.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug description
In a Structured Collection, if two child pages have the same Title, they become ambiguous when browsing links in the "List" mode.
This applies to areas such as:
- Link fieldtype
- Entries fieldtype
- Bard link browser
- Navigation "Link to Entry"
If the fieldtype is configured for multiple Collections, the "tree" view is not available at all - so there is no other workaround without setting meaningful titles (but then requires other fields for front end titles).
In the past we've worked around this by hiding the Title field, and creating a frontend-suitable field instead, and using a listener to set the Title based on the structured route. Catch is that "title" is still a valid variable but is no longer meaningful for front end users.
How to reproduce
- New Statamic install
- Create a nested structure, such as:
- Add a Link fieldtype to your Blueprint
- Edit an Entry and browse the Link field for an entry - switch to "List" mode
In the above, you could still flick to "Tree" and see more meaningful structures.
To continue:
- Add a new Collection, configure to be routable, and add a "Tomato" entry
- Use the Link fieldtype again - "Tree" is no longer an option, so you must use "List" - but there are now three "Tomato" entries
At least different Collections show the Collection for each Entry, but that does not resolve the issue of the same name child in a single Collection.
Environment
Environment
Laravel Version: 13.35.0
PHP Version: 8.5.10
Composer Version: 2.10.2
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file
Storage
public/storage: NOT LINKED
Statamic
Addons: 0
License Key: Not set
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.35.1 PRO
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
- Lenguaje dominante
- PHP
- Estrellas
- 4.9k
- Forks
- 647
- Merge medio
- 1 d 45 min
- PR fusionados (30 d)
- 221
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de statamic/cms
-
forms ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
accessibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
antlers
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Nav: link to the site root with an anchor (/#section) gets is_parent on every pagePosiblemente ocupada @duncanmcclean la tomó hoy. Abiertonavigations
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Multiple Choice and Checkboxes no longer offer "Inline", but the default views still use itPosiblemente ocupada @duncanmcclean la tomó hoy. Abiertoforms
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de statamic/cms
Issues similares
-
sync-en
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Selection on a line without a docblock tag drops trailing characters (data provider attribute)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vimeo/psalm#15150 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
taskforcesh/bullmq#5238 ·
Los mantenedores suelen responder en 1 día
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itPosiblemente ocupada @bfs2021 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Automattic/jetpack#55517 ·
Los mantenedores suelen responder en 1 día