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

Add dynamic templates to pages list #50418

Closed
8 tasks
SaxonF opened this issue May 8, 2023 · 1 comment · Fixed by #50630
Closed
8 tasks

Add dynamic templates to pages list #50418

SaxonF opened this issue May 8, 2023 · 1 comment · Fixed by #50630
Assignees
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Enhancement A suggestion for improvement.

Comments

@SaxonF
Copy link
Contributor

SaxonF commented May 8, 2023

What problem does this address?

Templates can often be a confusing concept to WordPress beginners or even experienced end users who haven't been exposed to site editing. A lot of this confusions stems from the idea that templates are smartly mapped to certain dynamic pages, and thus could be seen as pages themselves. Visit your site's homepage and you naturally think of it as just another page.

What is your proposed solution?

This work aims to reduce some of that confusion by surfacing more general templates in the pages list. This is a follow up to #44461

pages

Acceptance

  • If 404 template exists, include in the list using layout icon
  • If search template exists, include in the list using layout icon

Homepage displays latest posts:

  • Include a "Homepage" item using the home icon
  • The homepage item should open the template details panel for front-page OR home OR index in that order

Homepage displays a static page:

  • The page that is marked as homepage should use the home icon with "front page" subtext
  • The page that is marked as blog should use the loop icon with "posts page" subtext
  • The homepage item should open the page details panel
  • The blog page item should open either home OR index template details panel in that order
@ramonjd ramonjd added [Type] Enhancement A suggestion for improvement. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels May 8, 2023
@jameskoster
Copy link
Contributor

jameskoster commented May 9, 2023

Looks good to me.

In reading homepage settings, if "your latest posts" is enabled , include a "Homepage" item using the home icon

If we think the home icon is adequate, could the label be "Latest posts" to align with the settings? Alternatively "Blog" could align with other areas of the UI like the template groupings we've discussed.

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: Done
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants