Ambiguous "title" when browsing Entries

Aperta
#15,598 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jaygeorge ci sta già lavorando.

Dal 7/10/2026.

  • #15603 di @jaygeorge — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
php
Ambito
frontend

Direzione di ricerca

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.

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

Descrizione

fieldtypes ui
Bug description

In a Structured Collection, if two child pages have the same Title, they become ambiguous when browsing links in the "List" mode.

Image

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
  1. New Statamic install
  2. Create a nested structure, such as:
Image
  1. Add a Link fieldtype to your Blueprint
  2. 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:

  1. Add a new Collection, configure to be routable, and add a "Tomato" entry
  2. 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

Lingua principale
PHP
Stelle
4.9k
Fork
647
Merge medio
1g 45m
PR unite (30g)
221

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 statamic/cms

Tutte le issue di statamic/cms

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.