Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Entries Fieldtype: Tree View #8899

Merged
merged 14 commits into from
Nov 2, 2023
Merged

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Oct 31, 2023

This pull request introduces a new "Tree View" to the entries fieldtype stack selector.

The Tree View displays pages (or any kind of entry for that matter) in a hierarchical tree structure, providing better context and visibility into the entry's parents and overall entry structure.

This is particularly useful when dealing with page structures that have multiple pages with the same name, making it difficult to differentiate them using the traditional list view.

Example:

  • Home
  • About
  • Locations
    • Glasgow
      • Apartments
      • Gallery
      • Contact
    • Edinburgh
      • Apartments
      • Gallery
      • Contact
    • Belfast
      • Apartments
      • Gallery
      • Contact

The Tree View is only available for Entries fields that have a single collection configured.

CleanShot 2023-10-31 at 14 45 32

To Do

  • UI/UX Tidy-up
  • Make Page Tree Collection Name dynamic

Related: #4187.
Closes statamic/ideas#666.

@duncanmcclean duncanmcclean marked this pull request as ready for review October 31, 2023 14:48
@jasonvarga jasonvarga merged commit 58a73dc into 4.x Nov 2, 2023
34 checks passed
@jasonvarga jasonvarga deleted the entries-stack-with-tree-view branch November 2, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select related entries/pages via tree view
3 participants