-
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
Refine the Posts List block #32268
Comments
Here's a first take on this: Posts.Variation.mp4
Figma prototype here. |
This can also be the case for Query blocks that don't have enough posts to show. The pagination in the editor is not calculating anything and is there for positioning and styling reasons. Related to that would be: #30369 and #32230. This is indeed challenging because the
|
Ah yes, I think that's a separate issue. My point here is that the pagination will never display anything on the frontend in this particular scenario. So it doesn't make much sense for that block to even be available for insertion. |
Coming back to this one, as an excercise I used Figma components to consider an updated "Latest Posts" inspector: It's definitely challenged with complexity and could use a lot of work. But there might also be reusable ingredients from the above, and in case it inspires anyone, here's the figma. |
Hey @jasmussen, just clarifying that this issue is focussed on the Posts List block – a Query variant. Latest Posts is something different – an evolution of an old widget iirc. That said, now I'm wondering if they should be one and the same. |
Yep, the idea was that the inspectors could at least be similar if not the same, as there's presumably going to be a great deal of overlap. |
I suppose it will depend on whether we leverage the Query block for Latest Posts. If we do, then a great deal of these options can be removed in favor of the child blocks inside Post Template. |
@jameskoster Can you help me by clarifying in what way the query pagination does not work on a post or page? It is working in my test. If you are editing a page that you then set as a static home page, it also makes a lot of sense to have a query pagination. |
Looks like it got fixed :) |
The Posts List block improves the user-friendliness of the Query block in terms of discovery. But beyond that it is problematic because the underlying Query block (and all of its associated complexity) is exposed upon insertion.
Features like pagination will not work correctly on a post or page – this is a feature for templates onlyHere's a quick video highlighting these problems:
posts.list.mp4
As you can see, when the Query inherits from the URL, the front/backend does not match. Also, the pagination doesn't appear on the frontend which feels buggy. It's just a confusing experience all-round.
It would be interesting to extend the variation so that it retains its "Post List" name post insertion.
Since pagination will not work in this context there is scope to simplify the block structure by removing the confusing Query Loop, and restricting which blocks can be inserted inside the posts list.In a similar vein the "inherit query from URL" option can be hidden in the Inspector. Even the filtering options can be simplified as we wouldn't need to ask the user to specify which post type to display.Thinking a little further down the road, a dedicated block for displaying
post
s opens the door to:post
s.The text was updated successfully, but these errors were encountered: