-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Query pagination block cannot be dragged into a group #31621
Comments
Is it possible for a block to have more than one parent? |
Query Pagination needs to be inside a Query block because it uses values from context to perform the proper pagination query. If we allow it in
I'm not sure about this but wouldn't solve the problem here, unless we had a mechanism to allow blocks exist inside some/any blocks, as long as the parent is a specific block. For example to be able to say For now let's see what styling options would you like for Pagination @fklein-lu, is it about |
I'm not sure it's easy as this. Let's consider this layout: It's straightforward:
But this requires the following structure:
Which you can achieve by manually editing the templates, and it all still works. So one could give the Query Pagination the same styling option as the Group block. But that then still doesn't answer the question of how a Query block can be restricted to the content width, while the Query Pagination is full-width, but with the links being wide aligned. The issue is that one cannot expect a block as complex as the Query block to only have simple parent child relationships. Post blocks can also be placed in Groups inside of the Query Loop block, so I don't see what speaks against allowing the same for the Query. |
Okay, I got what you mean. The proper solution for this is for
Post blocks are different in that they use as context |
There's no reason why the context couldn't be passed through from the Meanwhile even complex groupings like the one below work, so I don't understand what the hangup is.
|
This is the hangup:
Meanwhile I created a PR that solves your problem by adding |
Description
Query Pagination blocks cannot be dragged into Group blocks. This can only be done by manually changing the template markup. Query Pagination blocks need to be able to be placed into Groups for styling purposes.
Step-by-step reproduction instructions
Expected behaviour
The Query Pagination block should be placed inside the Group block.
Actual behaviour
The Query Pagination block refuses to be put inside the Group block.
Screenshots or screen recording (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: