-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Block Themes] Consider an FSE-compatible approach to starter content #35680
Comments
Thinking about this... it's a tricky problem, excuse the rough notes! 😅 This is how starter content works currently:
But full site editing is different:
Perhaps we can set up a system where the theme can define a set of fake entities that the block editor loads into I'm also not sure if it will be confusing that starter content looks exactly like real content except for that it disappears when you make a change and doesn't appear in the site's frontend. I suppose we already have this problem. Still, this is a good opportunity to figure out if there is a better way to solve the problem that starter content solves. |
Is there something minimal we can do here for WP 5.9? cc. @WordPress/gutenberg-core |
For what it's worth, I believe the theme will have to ship with traditional starter content to power its Theme Showcase preview (unless we change the way that works too, but that seems like a stretch). So the issue is specifically that we don't have a way to preview/activate that content since there's no Customizer. |
I think I've POC for this feature. I'll push it shortly. |
Thanks — While that does theoretically help with the issue, I noted over in #36168 (comment) that I think we should push for something better. |
Thanks for commenting on the other PR, @kjellr. I also would prefer to better/native API for handling block themes starter content. But I don't think there's enough time left until the feature freeze to land something like this. |
Since there is strong opposition to always showing the Customize link I will revert #36168 and allow this issue to be addressed after the feature freeze date next week in time for 5.9 beta 1. |
👋 Just want to make myself available for questions/rubberducking if you need, since I was behind the original drive to starter content as well as the integration with theme directory previews last year. Ignoring the theme directory part for a moment, I do rather wonder if the whole "fresh site" concept isn't really relevant in this paradigm - maybe it's more like full page patterns that you can experiment with, either within a content area or for a full template? The directory preview probably needs to become something that can actually display all the different patterns, both theme-specific and from the directory, within the context of the theme, in addition to "idealized" combinations of content. That is definitely a bit of a stretch, but we made the whole thing work in a matter of a couple weeks last year including a manual review of every enabled theme's preview, so never say never :) |
I think as far as WP 5.9 goes we can bump this in favour of WordPress/twentytwentytwo#243. We should continue to work on alternatives to starter content for future releases though. |
That makes sense to me too. I think we’ve got it covered for now in WordPress/twentytwentytwo#243. |
One interesting aspect of patterns and templates is that starter content becomes a lot more flexible. They can be starting points for new pages or new templates at any point, not just an initial install as a whole. I think templates should also be embraced more as providers of starting points. We should be seeing themes with opinionated |
On that note, I shared some initial ideas for surfacing patterns whilst template editing here, but I agree this area is ripe for more exploration. |
The legacy way of providing starter content for themes relied on users visiting the customizer after a fresh install:
Gutenberg currently hides the Customizer, so that's not possible for block themes. For Twenty Twenty-Two (WordPress/twentytwentytwo#116), I'd like to at least have us set a static homepage on a fresh install of the theme, but there's no FSE-based way of making that happen.
How can we make that happen? And beyond that, the previous way of entering starter content relied on a bunch of post markup sitting inside of PHP. Is there a way we can improve that now that we're working with HTML templates?
The text was updated successfully, but these errors were encountered: