-
-
Notifications
You must be signed in to change notification settings - Fork 641
[6.x] Hierarchical Taxonomies #15192
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
Draft
jackmcdade
wants to merge
96
commits into
6.x
Choose a base branch
from
feature/hierarchical-taxonomies
base: 6.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 28 commits
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
45eff81
Add taxonomy structures so terms can be hierarchical.
jackmcdade 10f3c15
Add a CP tree view and orderable settings for hierarchical taxonomies.
jackmcdade 5bb6d3d
Nest hierarchical term URLs and expose parent/depth in tags.
jackmcdade c4f7503
Show term hierarchy in the terms fieldtype.
jackmcdade b67202b
Expose taxonomy trees in the REST API and GraphQL.
jackmcdade a78f822
Add per-taxonomy route control so URLs can be customized or disabled.
jackmcdade 0cf33e0
Treat custom taxonomy routes as full URL patterns, without collection…
jackmcdade 847503a
Improve creating nested terms in the terms fieldtype.
jackmcdade eabec93
Nest newly created term paths in the persisted taxonomy tree.
jackmcdade b6df8cb
Fix term edits not persisting when associated in another site.
jackmcdade 9ccca78
Let you choose whether deleting a parent term also deletes its children.
jackmcdade 88694c6
Fix deleted terms lingering in entries, and nest YAML term paths in t…
jackmcdade cee51e0
Treat max-depth-1 taxonomies as a flat reorderable list, like collect…
jackmcdade 9524988
Invalidate static cache using actual taxonomy routes, including custo…
jackmcdade b11a022
Show the taxonomy tree to anyone who can view it, and only allow edit…
jackmcdade 4077ebd
Validate taxonomy tree max depth on the server, not just in the UI.
jackmcdade c6ecf18
Rewrite nested term path references when a term is renamed.
jackmcdade 4855d99
Add a structure tag for taxonomy trees, matching collection and nav t…
jackmcdade 9671f59
Include descendant terms in taxonomy filters by default.
jackmcdade 6cb9333
Default hierarchical terms fields to the select dropdown so they can …
jackmcdade d21e752
Sort structured taxonomy terms by tree order in the CP list, matching…
jackmcdade 27a4d4c
Add a site selector to the taxonomy tree so localized titles and crea…
jackmcdade 0331ce3
Show parent breadcrumbs when creating a child term.
jackmcdade a2e8974
Expand CP entry listing term filters to include descendant terms in a…
jackmcdade 6b8b044
Add a term option to the link fieldtype, matching entry and asset.
jackmcdade 59dbd36
Scaffold taxonomy index and term templates, including hierarchy tags …
jackmcdade 7cad640
Replace term parent breadcrumbs with a relationship field so you can …
jackmcdade 4e95283
Import translation helpers
jackmcdade a81db17
Fix terms fieldtype losing tree view when a second flat taxonomy is p…
jackmcdade 89610ed
Swap out the nested child icon for a softer, less brutalist one
jackmcdade 3f6ebf9
Bring back selected term breadcrumbs
jackmcdade d64917f
Use chevrons and AA compatible color contrasts
jackmcdade 1e3dc0c
Gate term path rewriting to hierarchical taxonomies.
jackmcdade e5e9681
Resolve taxonomy tag hierarchy params through localized slugs.
jackmcdade 00a6303
Validate term parent before applying publish-form edits.
jackmcdade 0268fe5
404 the CP taxonomy tree when the taxonomy is not structured.
jackmcdade 41489c2
Validate taxonomy tree depth before deleting terms.
jackmcdade f3aac4d
Ship structured ancestor titles on terms field items.
jackmcdade 8f18c5f
Remove a dead terms-field placeholder branch.
jackmcdade 32294d8
Create nested term paths atomically and write the tree once.
jackmcdade 93dcd3c
Key unsaved taxonomy trees by the default site.
jackmcdade fbe96a1
Sort the new taxonomy validation keys alphabetically.
jackmcdade f4f40de
Validate create-time parents and resolve structure-tag from slugs.
jackmcdade 8262f9e
Merge branch '6.x' into feature/hierarchical-taxonomies
jackmcdade f0c5bc7
Merge branch '6.x' into feature/hierarchical-taxonomies
jackmcdade d37c5a4
Merge branch '6.x' into feature/hierarchical-taxonomies
jackmcdade fae1023
Add taxonomy structure classes to the serializable classes allowlist
jasonvarga 96cd7bf
Don't shadow blueprint fields named parent/children/ancestors/depth/i…
jasonvarga 57a0021
Extract the taxonomy term path delimiter to a constant.
jasonvarga 8b349c3
Prefer an existing term over path parsing when typing a term value.
jasonvarga afee01a
Switch the taxonomy term path delimiter from "/" to ">".
jasonvarga f28e3a2
Stop creating terms when syncing an entry's taxonomy index.
jasonvarga 735835f
Treat a stored term value as a whole value, not a path.
jasonvarga 8f16521
Remove the parent field from the term publish form.
jasonvarga 43635d5
Don't force hierarchical terms fields into select mode.
jasonvarga 8ff740f
Cover the site argument on the taxonomy structure tree query.
jasonvarga 4b95815
Reuse the shared structure type for taxonomy structures.
jasonvarga af718be
Allow a TaxonomyTreeSaving listener to cancel the save.
jasonvarga 4eb62c4
Remove the dead tree prop from the relationship select field.
jasonvarga 676aab5
Merge remote-tracking branch 'origin/6.x' into feature/hierarchical-t…
jasonvarga 823dd49
Ship relationship search keys from the fieldtype
jasonvarga ce449d1
Render a generic item path in the relationship item row
jasonvarga e28e46e
Ship the typed path delimiter from the fieldtype
jasonvarga a12c26d
Indent a term option in tree order, breadcrumb it otherwise
jasonvarga 5dc6ece
Breadcrumb a term option while a select field filters client-side
jasonvarga 76c12a7
Keep the taxonomy hint on nested term options
jasonvarga d65532d
Keep the terms API flat, like the entries one
jasonvarga d9bd2f5
Honour a swapped TermResource inside the taxonomy tree
jasonvarga 6c099dd
Validate the flat term reorder, porting #15238
jasonvarga 8239a98
Merge remote-tracking branch 'origin/6.x' into feature/hierarchical-t…
jasonvarga d9fd307
Keep the blueprint fieldtype on flat term hierarchy fields
jasonvarga 5346218
Remove is_root from term hierarchy augmentation
jasonvarga d87db86
Guard against an empty collection handle in the children tag
jasonvarga 43a1115
Merge remote-tracking branch 'origin/6.x' into feature/hierarchical-t…
jasonvarga 636fdc8
Merge remote-tracking branch 'origin/6.x' into feature/hierarchical-t…
jasonvarga cece1d8
Slug term reference values with the item's language
jasonvarga b031cfe
Let the structures fieldtype resolve taxonomy structures
jasonvarga 50127f1
Stop expanding term filter values into /-joined paths.
jasonvarga fae12ae
Remove the taxonomies store's uri index.
jasonvarga 19e1bee
Merge remote-tracking branch 'origin/6.x' into feature/hierarchical-t…
jasonvarga c14dec7
Expand term filter values in the shape the field stores them
jasonvarga e6eaeeb
Render the taxonomy tree's site selector, without making the tree per…
jasonvarga cd078fc
Consolidate the taxonomy max-depth rules onto the structure
jasonvarga 2f146d6
Validate a typed term path's depth before creating any terms
jasonvarga d912361
Build the submitted taxonomy tree once when reordering
jasonvarga be7cb2c
Add root level terms to the taxonomy tree when they're created
jasonvarga 252f92a
Merge remote-tracking branch 'origin/6.x' into feature/hierarchical-t…
jasonvarga 46b16dc
Merge remote-tracking branch 'origin/6.x' into feature/hierarchical-t…
jasonvarga 0c8c5b6
Validate the site on the taxonomy tree API endpoint
jasonvarga 35699ca
Promote the children of terms missing from a taxonomy tree
jasonvarga 9678bc5
Count descendant entries in a hierarchical term's entries count
jasonvarga 77deb69
Surface descendants when searching a hierarchical taxonomy in typeahe…
jasonvarga 686f1c4
Clarify what the terms fieldtype's search keys are for
jasonvarga 7477355
Truncate relationship item titles and subdue ancestor paths
jasonvarga d00cc83
Use a chevron in the term listing's parent path
jasonvarga 0bd4694
Only ship the term path delimiter when a single taxonomy is configured
jasonvarga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.