Skip to content
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

Archive Title & Term Description – Display data when possible #44158

Open
jameskoster opened this issue Sep 14, 2022 · 4 comments
Open

Archive Title & Term Description – Display data when possible #44158

jameskoster opened this issue Sep 14, 2022 · 4 comments
Labels
[Block] Query Title Affects the Query Title Block [Block] Term Description Affects the Term Description Block - used for displaying the description of a tag, catergory or othe [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

With #43699 merged, it would be nice to apply the same treatment to the Archive Title and Term Description blocks.

At the moment, if you create a template for a specific category, the Query Loop within that template will display posts from that category.

However, Archive Title and Term Description continue to display their generic placeholders:

Screenshot 2022-09-14 at 14 59 56

Since the template infers context, ideally these blocks should behave like Query Loop and display the actual title / description.

cc @oandregal since you worked on this before :)

@jameskoster jameskoster added [Type] Enhancement A suggestion for improvement. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Block] Term Description Affects the Term Description Block - used for displaying the description of a tag, catergory or othe labels Sep 14, 2022
@oandregal oandregal added the [Block] Query Title Affects the Query Title Block label Sep 16, 2022
@oandregal
Copy link
Member

For the template of a base category I understand we want to show Category: base in the archive title. What should we do for the fallback category template (any category)?

@jameskoster
Copy link
Contributor Author

Something like this makes sense to me:

Template Archive Title renders
category.html Category: Name
category-recipes.html Category: Recipes

This scheme can be used with Tags and other archives too.

What do you think?

@annezazu
Copy link
Contributor

Can we close this with #52521 merged?

@jameskoster
Copy link
Contributor Author

jameskoster commented Jul 28, 2023

Not quite. We still need to handle date archives which are a bit tricky as the placeholder needs to account for all the different formats, e.g.:

Year: 2023
Month: May 2023
Day: May 10, 2023

Perhaps something like Year/Month/Day: Value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Title Affects the Query Title Block [Block] Term Description Affects the Term Description Block - used for displaying the description of a tag, catergory or othe [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants