Ambiguous "title" when browsing Entries

オープン
#15,598 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jaygeorge がすでに取り組んでいます。

2026年10月7日 から。

  • #15603 @jaygeorge による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
PHP
スター
4.9k
フォーク
647
平均マージ
1日 45分
マージ済み PR(30日)
221

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

statamic/cms のほかの issue

statamic/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。