-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 title block - Archive Title #29428
Conversation
packages/e2e-tests/fixtures/blocks/core__table-of-contents.json
Outdated
Show resolved
Hide resolved
Size Change: +462 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
I think that we need to match the title and description - I mean that if it is decided that the term/category/tag description block is not a block for the query, but stand-alone, then the title needs to be the same, and their block names should match too. |
|
Once I started testing the block I still found it confusing that I could place the block anywhere in the editor, but on the front it only displayed on archive pages. I am struggling with how a user can understand how this block works if it is not a child block of the query, because the editor and front will not match. Can there be a warning instead of a placeholder, on pages that are not archives? For example in the regular post editor. |
Ideally, FSE blocks will only be available in the site-editor. I think I've seen a ticket for that somewhere but can't find it right now... AFAIK that is the plan and these blocks will not be available in the post-editor. |
I understand what you're saying but this is a more complex problem with context detection that hasn't been solved yet. So I agree with you and Ari about:
but this will be handled later.. For now we can probably have a better description to indicate its behavior and I have no strong opinion on making it available only in |
I think it is the opposite, but it is not decided which blocks yet: |
a2f17c2
to
1b49271
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me 👍
Tested and it seems to be working as advertised.
I left a couple of notes but they are not blockers, just opinions open for discussion.
Co-authored-by: Carolina Nymark <myazalea@hotmail.com>
0c95cf3
to
6cc9333
Compare
Description
Part of: #22724
This PR adds
Query Title
block and is implemented withblock variations
.It's part of #27989 which will need more decisions about handling
text replacements
for example inSearch Title
(see more info in the above PR's description).For now it only supports
Archive Title
which is definitely needed and we can move towards other variations incrementally.Notes about Archive Title
get_the_archive_title
hook