Skip to content

[6.x] Entry parent badge for listing view - #15603

Draft
jaygeorge wants to merge 4 commits into
6.xfrom
feature/15598-entry-parent-badge
Draft

jaygeorge wants to merge 4 commits into
6.xfrom
feature/15598-entry-parent-badge

Conversation

@jaygeorge

Copy link
Copy Markdown
Contributor

Description of the Problem

In structured collections, entries with the same title (e.g. two “Tomato” pages under different parents) are indistinguishable in List mode — Entries/Link browsers, Bard link picker, Nav “Link to Entry”, and the collection listing. With multiple collections configured, Tree mode isn’t available, so there’s no hierarchy cue at all. Closes #15598.

What this PR Does

2026-10-07 at 15 46 22@2x 2026-10-07 at 15 46 48@2x
  • Adds structure parent breadcrumbs (nearest parent first; collection root omitted when expectsRoot)
  • Shows them as a pill badge with chevron separators next to the title in the collection listing and relationship selector
  • Includes the breadcrumb in Entries fieldtype item hints (before collection/site)
  • Exposes breadcrumbs as an array from the listing API so titles containing ‹/› don’t break

How to Reproduce

  1. Use a structured Pages collection with the same title under different parents (e.g. Fruit → Tomato, Vegetables → Tomato), optionally nest deeper (Vegetables → Tomato → Love Actually)
  2. Open Collections → Pages → List — each ambiguous title should show its parent path (e.g. ‹ Fruit, ‹ Tomato ‹ Vegetables)
  3. On an Entries/Link field (especially multi-collection so Tree is unavailable), open the browser in List mode — same badges, and select/typeahead hints include the path
@duncanmcclean duncanmcclean changed the title [6.x] entry parent badge for listing view Oct 7, 2026
@jasonvarga

Copy link
Copy Markdown
Member

Hold off on this for a moment. Something like this was already being introduced in #15192.

@jasonvarga
jasonvarga marked this pull request as draft October 7, 2026 14:36

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants