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 setting to disable block template for events and venues #528

Open
mauteri opened this issue Feb 4, 2024 · 3 comments
Open

Add setting to disable block template for events and venues #528

mauteri opened this issue Feb 4, 2024 · 3 comments
Labels
blocks good first issue Good for newcomers
Milestone

Comments

@mauteri
Copy link
Contributor

mauteri commented Feb 4, 2024

Currently events and venues start out with blocks preset to make things easier. We need a checkbox in GatherPress settings to disable this so people can use FSE templates to add their blocks.

@carstingaxion
Copy link
Collaborator

I would suggest following WordPress‘ decisions, not options philosophy and not adding a setting for this (for now).

If a user is disabling the built-in template, she would have to start with a blank canvas, because we do not have any core UI available yet, wether to re-set this template definition nor to choose some patterns as starter-content. That‘s why I linked the Gutenberg issue over here.

I could easily imagine a add-on plugin to filter the register_post_type() arguments to unset template in a first step. And second, provide some patterns in addition, using the gatherpress-core blocks.

@mauteri
Copy link
Contributor Author

mauteri commented Feb 17, 2024

@carstingaxion thanks for this. This is good feedback.

I'll hold off on this ticket for now. I do think this will come up soon that the default blocks and the order they appear will not be ideal for some folks (especially those using a FSE theme that want to add GP blocks to a site template).

I too could also see this as a companion plugin for GP to manipulate the templates as you stated. I'm not sure the right answer and maybe something out of core (like the ticket you linked too) will provide the solution.

@mauteri mauteri moved this from Next Release to Icebox in GatherPress Project Feb 21, 2024
@carstingaxion carstingaxion added this to the 0.30.0 milestone Jun 16, 2024
@mauteri mauteri modified the milestones: 0.30.0, 0.31.0 Jul 21, 2024
@carstingaxion
Copy link
Collaborator

For the coming WordPress 6.7 release, GatherPress is now able to & should have prepared FSE templates for its post types:

https://developer.wordpress.org/news/2024/08/29/registering-block-templates-via-plugins-in-wordpress-6-7/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocks good first issue Good for newcomers
Projects
Status: Icebox
Development

No branches or pull requests

2 participants