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

Explore ways of showing where template parts and templates are currently in use #38967

Closed
annezazu opened this issue Feb 21, 2022 · 2 comments
Closed
Labels
[Block] Template Part Affects the Template Parts Block [Feature] Focus Mode Zoomed in focus mode for editing things like template parts Needs Design Needs design efforts. [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable

Comments

@annezazu
Copy link
Contributor

annezazu commented Feb 21, 2022

What problem does this address?

In the latest FSE Outreach Program's All Things Media exploration, the following feedback came up:

I wonder if in FSE, if there would be an intuitive way to show when a part uses other parts from the selector screen. Some bit of text. “Header” This part is reused in _______. Or the opposite way! “Header Large” this template part uses the template part “Header”. On the “templates” page, you have no idea what template parts are used on each page. It’s not so bad when each page only uses a header and a footer, but I imagine in the future templates might include even more template parts. So when you see the Archive page in twenty-twenty two, you can’t tell till you get into it what parts it includes. It would be nice for the uninitiated into WordPress if there were more information here. Some of this information can be found in other places, and some it can’t

Tied to this, I've been hearing anecdotal and have personally experienced in building my own site confusion around editing one template part and then needing to go through every single template to ensure that template part is used. It would be nice to have an easy way to know where each template part is or isn't used in order to quickly make changes to the right one and/or to know where updates need to be made. In my case, I ended up just opening every single template to ensure it was using the template part I wanted.

The same is true with templates. When one is updating a template, it would help to be able to see, at a glance, where each is used in more detail rather than just relying on the description. This too came up in the same call for testing above:

I really do not know which template affects which pages/posts. So I assume that a Page template affects all the pages.

What is your proposed solution?

Need some major design thought here :) Some ideas in no particular order around where to show this:

  • Multi entity saving (this feels a bit late).
  • Site Editor > Template parts or Templates respectively.
  • For template parts, perhaps in the isolated template part mode (perhaps in the block settings sidebar when selecting the entire template part since that's currently empty)
@annezazu annezazu added Needs Design Needs design efforts. [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable [Feature] Full Site Editing [Block] Template Part Affects the Template Parts Block [Feature] Focus Mode Zoomed in focus mode for editing things like template parts labels Feb 21, 2022
@annezazu annezazu changed the title Explore ways of showing where template parts are used in other templates Mar 9, 2022
@annezazu
Copy link
Contributor Author

annezazu commented Apr 6, 2022

More feedback has come in as a result of the thirteenth call for testing for the FSE Outreach Program:

Different headers use different menus. Depending on which header and menu I used. I do not know how to select to use another menu for the header template I selected to use.

Specifically, this is discussing the experience of adding a Header template part to a brand new blank template, using the "choose" option, and seeing the various template parts presented. When you are looking there, there's no indication of where else a template part is in use:

Screen Shot 2022-04-06 at 12 31 55 PM

Here's a video from @paaljoachim that starts at 1:47 showing this quickly for about a minute: https://youtu.be/ywpN_1VRrt4?t=107

@mtias
Copy link
Member

mtias commented May 22, 2022

Closing as duplicate of #20476.

@mtias mtias closed this as completed May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Template Part Affects the Template Parts Block [Feature] Focus Mode Zoomed in focus mode for editing things like template parts Needs Design Needs design efforts. [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable
2 participants