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

Block context #13

Open
ryanwelcher opened this issue Aug 18, 2023 · 0 comments
Open

Block context #13

ryanwelcher opened this issue Aug 18, 2023 · 0 comments
Assignees
Labels
Commis Chef This recipe is for those newer to block development Recipe

Comments

@ryanwelcher
Copy link
Owner

ryanwelcher commented Aug 18, 2023

Creating a block that is aware of the postType and postID that it's inserted on and can provide context to it's children.

Post Picker.

  • Custom block with InnerBlocks that only allows custom inner block that displays item Title.
  • Inner block is a search field for whatever content type is chosen
  • Main block gets the default post type from global context.
  • Main Provides the chosen post type to the inner blocks

Tags

Block Context, InnerBlocks, data layer

@ryanwelcher ryanwelcher added the Commis Chef This recipe is for those newer to block development label Nov 8, 2024
@ryanwelcher ryanwelcher self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Commis Chef This recipe is for those newer to block development Recipe
Projects
None yet
Development

No branches or pull requests

1 participant