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
When a custom query is applied that's using the "Offset" filter, the use case is commonly a template that has multiple query loops at once, including one that starts without an offset. For example, a "news" type layout:
In such a template, the first query loop will already show a "No results found" message. Perhaps it will even show a customized variant using the "No results" block. If you site has 1 or 0 posts, it is not going to be useful to see a repeated "No results" message, for every subsequent off-set loop:
Duplicated "No results" blocks were, as shown above, already removed from the Twenty Twenty-Five News template. But the "No results found" message comes from the Query Loop block itself, and is output even when a "No results" block is used, being duplicative.
Suggestion:
Don't show the "No results found." message if there is a "No results" child block.
Don't show the "No results found." message if the query loop has an offset.
The text was updated successfully, but these errors were encountered:
My only concern is that without showing anything, it can become difficult to see and understand that there is a query loop block there, so maybe it needs some sort of visual placeholder still, that takes up the space of the block and ensures that it can still be selected with a pointer like a mouse.
Yes, we could potentially show a placeholder message, similar to what the Content block shows. Such as "No results yet; adjust settings to view." or ideally shorter.
Showing some fake demo posts/placeholders could be excellent with a "demo content" watermark on images and "demo content" titles and excerpts.
I think that's valid beyond any basic placeholder content for example the "Content" block shows. Careful balance to strike, though, as it's also valid to see how a template looks when your site only has 1 or 2 posts, for example.
You might also be interested in #28466, which suggests a way to "fill out with dummy content" a template, for previewing purposes.
When a custom query is applied that's using the "Offset" filter, the use case is commonly a template that has multiple query loops at once, including one that starts without an offset. For example, a "news" type layout:
In such a template, the first query loop will already show a "No results found" message. Perhaps it will even show a customized variant using the "No results" block. If you site has 1 or 0 posts, it is not going to be useful to see a repeated "No results" message, for every subsequent off-set loop:
Duplicated "No results" blocks were, as shown above, already removed from the Twenty Twenty-Five News template. But the "No results found" message comes from the Query Loop block itself, and is output even when a "No results" block is used, being duplicative.
Suggestion:
The text was updated successfully, but these errors were encountered: