Skip to content

Conversation

BrannanKovachev
Copy link
Contributor

@BrannanKovachev BrannanKovachev commented Oct 15, 2025

What?

Previously, if you were using the nested docs plugin and made use of the createParentField or createBreadcrumbsField functions in the collection where nested docs is enabled, you could not place either the of those in a "tabs" field.

Why?

The issue happens because the code did not search the flattened fields of the collection. In other words, it wouldn't search within 'tabs' type fields for a field matching the desired namee.

How?

We flatten the fields and then search them.

@BrannanKovachev
Copy link
Contributor Author

BrannanKovachev commented Oct 15, 2025

Tangentially related to this PR:
Is there a way to condition a field to appear in the sidebar based on which tab you have selected?

Even though this change lets me put the relevant fields in a tab, I would ideally still have them appear in the sidebar but only while on the configured tab. It seems like if a field is in a tab, the admin.sidebar option doesn't do anything.

@BrannanKovachev BrannanKovachev changed the title fix: Allow placing breadcrumbs & parent in tabs field by properly flattening collection fields fix: allow placing breadcrumbs & parent in tabs field by properly flattening collection fields Oct 15, 2025
@BrannanKovachev BrannanKovachev changed the title fix: allow placing breadcrumbs & parent in tabs field by properly flattening collection fields fix(plugin-nested-docs): allow placing breadcrumbs & parent in tabs field by properly flattening collection fields Oct 15, 2025
@BrannanKovachev BrannanKovachev marked this pull request as draft October 16, 2025 03:31
@BrannanKovachev BrannanKovachev marked this pull request as ready for review October 16, 2025 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant