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

Allow dynamic blocks to be used in php templates. #28702

Closed
pbking opened this issue Feb 3, 2021 · 2 comments
Closed

Allow dynamic blocks to be used in php templates. #28702

pbking opened this issue Feb 3, 2021 · 2 comments
Labels
Needs Technical Feedback Needs testing from a developer perspective.

Comments

@pbking
Copy link
Contributor

pbking commented Feb 3, 2021

What problem does this address?

There are a number of blocks only available in "FSE themes" that replace logic previously managed with template tags.

These blocks are a requirement for "FSE themes", however a classic PHP-based theme might benefit from migrating away from the PHP template tags and begin using these new blocks instead.

There has been discussion regarding these tags "being available in certain situations" (such as a user switching away from a FSE theme where those tags are used in block templates for example).

However there is value in ANY theme being able to use these blocks as a way to migrate towards using the technologies available to "FSE" themes.

The attempt to replace a template tag with a new block is outlined (simply) in this theme experiment.

There are another issues that discuss the relationship between "classic" and "block-based" themes, so this topic has likely already been discussed.

What is your proposed solution?

I haven't been able to determine if the blocks not working for these templates is due to a technical limitation or operational decision. If it is an operational decision I propose making these blocks more widely available (perhaps behind a "theme supports flag" for the time being) to themes beyond "FSE themes".

@talldan talldan added [Feature] Full Site Editing Needs Technical Feedback Needs testing from a developer perspective. labels Feb 4, 2021
@talldan
Copy link
Contributor

talldan commented Feb 4, 2021

There's also this issue which might have some overlap - #24313.

@pbking pbking changed the title Allow dynamic blocks to be used in classic themes. Allow dynamic blocks to be used in php templates. Feb 16, 2021
@pbking
Copy link
Contributor Author

pbking commented Feb 17, 2021

Closing as this as #28744 poses the same question in a more complete way with better discussion.

@pbking pbking closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Technical Feedback Needs testing from a developer perspective.
Projects
None yet
Development

No branches or pull requests

2 participants