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

When creating a template for a specific entry, load that entries data into edit template view #41947

Open
Tracked by #41241
jameskoster opened this issue Jun 24, 2022 · 5 comments
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

When you create a template for a specific entry like a post, that template should always resolve to display that post, and only that post. It has no other use.

We can therefore consider pulling the data for the associated entry into the template edit view.

IE, instead of the canvas looking like this:

Screenshot 2022-06-24 at 14 31 00

It would look like this:

Screenshot 2022-06-24 at 14 32 54

The context can be very helpful when crafting a bespoke template for a particular piece of content. This would also represent another step towards aligning the Template Editor with the Site Editor.

@jameskoster
Copy link
Contributor Author

This feels much more important now that #42520 is close to being merged.

It's a bit strange to create a template for a specific post category (for example) but not see posts from that category on the canvas.

@oandregal
Copy link
Member

#43699 makes the template for specific categories to only load the posts from that category.

@jameskoster
Copy link
Contributor Author

@oandregal Sorry for another ping :) I don't suppose you'd be able to look into this one? Now that we have contextual data in archive templates, it feels a little awkward to not have it in singular templates as well.

@jameskoster jameskoster changed the title When creating a template for a specific entry, consider loading that entries data into edit template view When creating a template for a specific entry, load that entries data into edit template view Sep 20, 2022
@jameskoster jameskoster added [Type] Enhancement A suggestion for improvement. Needs Dev Ready for, and needs developer efforts labels Sep 20, 2022
@oandregal
Copy link
Member

I started taking a look at #44158 the other day, but then had to switch to other things (backports, etc.). I'm still interested, though these days are a bit hectic :)

Is there a place where we can list all these issues, so it's easier to track?

@jameskoster
Copy link
Contributor Author

Is there a place where we can list all these issues, so it's easier to track?

I opened #44322 :)

@annezazu annezazu added [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") and removed [Feature] Full Site Editing labels Jul 24, 2023
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") Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants