You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often get designs where there are blocks in the middle of a query loop. For example, 6 posts in a grid and then a full-width newsletter subscribe section and then the post query grid continues on afterward. There is no way to connect query blocks to let them know about each other. This presents issues with pagination even if I set an offset. The first set of posts will show the posts already shown in the second query block when paginating. I don't want to use page templates or javascript as I want the client to be able to see and edit the blocks and change them within.
What is your proposed solution?
Allow query blocks to be aware of each other potentially through a backwards/skip offset. Example: you have 15 posts on a page with a newsletter section in between. In the editor You add a query block with 6 posts, then the newsletter block and then another query block with 9 posts (offset 6) and then the pagination block. For the first query block you are able to set a skip offset where it shows the first 6 posts then when paginating it skips 9 (or whatever # you have in second query block). For the second query block you can just use a normal offset.
Alternatively and possibly easier would be a setting where I can tie the second query block to use the same query as the first query block.
The text was updated successfully, but these errors were encountered:
What problem does this address?
I often get designs where there are blocks in the middle of a query loop. For example, 6 posts in a grid and then a full-width newsletter subscribe section and then the post query grid continues on afterward. There is no way to connect query blocks to let them know about each other. This presents issues with pagination even if I set an offset. The first set of posts will show the posts already shown in the second query block when paginating. I don't want to use page templates or javascript as I want the client to be able to see and edit the blocks and change them within.
What is your proposed solution?
Allow query blocks to be aware of each other potentially through a backwards/skip offset. Example: you have 15 posts on a page with a newsletter section in between. In the editor You add a query block with 6 posts, then the newsletter block and then another query block with 9 posts (offset 6) and then the pagination block. For the first query block you are able to set a skip offset where it shows the first 6 posts then when paginating it skips 9 (or whatever # you have in second query block). For the second query block you can just use a normal offset.
Alternatively and possibly easier would be a setting where I can tie the second query block to use the same query as the first query block.
The text was updated successfully, but these errors were encountered: