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

Create and set a page_for_posts in the site editor #63667

Open
jameskoster opened this issue Jul 17, 2024 · 6 comments
Open

Create and set a page_for_posts in the site editor #63667

jameskoster opened this issue Jul 17, 2024 · 6 comments
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

Related to #63666.

When the homepage is set to display a static page, if you want to create a page to display latest posts you must exit the site editor and configure the reading settings which is quite disruptive.

In such cases, the UI might conditionally surface an option to create a page for the blog within the site editor:

new page

If the user selects the option to create a blog, the new page is created as normal, and automatically set as page_for_posts.

@jameskoster jameskoster added [Type] Enhancement A suggestion for improvement. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Jul 17, 2024
@jameskoster jameskoster added the Needs Design Feedback Needs general design feedback. label Jul 17, 2024
@richtabor
Copy link
Member

In such cases, the UI might conditionally surface an option to create a page for the blog within the site editor:

Is this assuming you did not create a blog page when you assigned a static front page?

@jameskoster
Copy link
Contributor Author

Yes, this menu would only appear when a static homepage is set, but page_for_posts is unset. IE this configuration:

Screenshot 2024-07-22 at 12 37 02

@jasmussen
Copy link
Contributor

I wonder if this is dependant on #60772. It wouldn't really make sense without it?

@jameskoster
Copy link
Contributor Author

Not necessarily, this affordance is about allowing users to create and set page_for_posts when a static homepage is configured.

Currently to do this you need to create the page, then exit the site editor, go to reading settings and set that new page as the "Posts page"... not a particularly smooth flow! :D

This pattern can be replicated for other dynamic pages. For instance if a public post type (e.g. Products) exists we might allow users to create a "Products page" from this menu.

@jasmussen
Copy link
Contributor

I'm mostly asking because of the "Add new page" dropdown being shown in context of the pages section. Does it make sense to have this ability there, if the end result of what you create doesn't live in that section? Without that unification, "Blog page" remains a template, and could live in "Add new template" instead. I'm pro-unification, to be clear, just not sure this dropdown makes sense until such a thing has happened first.

@jameskoster
Copy link
Contributor Author

Does it make sense to have this ability there, if the end result of what you create doesn't live in that section?

That's one of the confusing pieces around the posts page UX: if you have a static homepage and a posts page, the posts page is included in the pages list. But if you don't have a static homepage and display latest posts on the homepage, then it doesn't 😓

If anything I'd say it's blocked by #63748.

@jasmussen jasmussen removed the Needs Design Feedback Needs general design feedback. label Oct 29, 2024
@jasmussen jasmussen moved this from Now to Needs Dev in Design priorities Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Enhancement A suggestion for improvement.
Projects
Status: Needs Dev
Development

No branches or pull requests

3 participants