Open wplit opened 5 years ago
It would only need to be a simple component that pulls in the content of the wp_block post.
But would allow Oxygen users to add a lot more elements to their templates, while giving their clients an easier, more visual way of editing them.
Example of reusable block allowing editor to change the title, text and image in a block.
(much better than using ACF for this use case as the client has more control, can visualise what they are putting on the page & is probably familiar with the block concept from writing posts)
Just needs to adds some styling with selector detector to match the site. Would be ideal for call to action boxes that are needed in multiple places across the site, both in templates and inside post content.
Holy cow David, this is an amazing idea. I can't believe how much easier life would be with such a system in place. :-)
Combine it with this plugin: https://wordpress.org/plugins/builder-template-categories/ and all editable content would be in one place for the client.
Why not make full-page templates in oxygen that can be selected as a Gutenberg full-page design? together with adding more Gutenberg elements to the main template is needed when working in Gutenberg.
This is what I'm waiting for. To keep on using dynamic entries with ACF but let text and content block be handled through Gutenberg but in a smarter templated way.
Describe the feature you'd like to see included in Oxygen.
To be able to add gutenberg resuable blocks easily into our templates built with Oxygen. (reusable blocks are saved as a CPT in WP)
See discussion in FB group - https://www.facebook.com/groups/1626639680763454/permalink/2102523763175041/
We can actually already do this, but it's hacky. We can use the Easy Posts, Query the post type wp_block (which are the reusable blocks), insert the ID of the block and show it by adding just the_content(); in the php template. But that's a lot of work for newbies (and so would using the code block). There is also extra markup around easy-posts that could cause styling issues if easy posts are used elsewhere and have been styled differently.
A simpler solution for users would be if there was a component in Oxygen that only did one thing, allowed users to add reusable blocks from Gutenberg into Oxygen templates. (So all it does is pull in the_content from one post from the post type wp_block, based on the ID selected.
What are the use cases for this feature? To give clients / content editors the ability to change some of the elements that appear in the Oxygen templates without having to give them access to Oxygen. and without the need for setting up third party plugins such as ACF or adding other CPT so much. The clients could simply open up the reusable block, change the content using the block editor they are familiar with and then just click save, knowing it will update it for them everywhere we have put these inside the templates.
Site wide content is another use case. Like the copy in the footer, maybe the address of the business that the client would need to update themselves. This could just be a block that they open up to edit and click update. For the Oxygen user building the site, we'd just add the resuable element to the footer. Currently for site wide content that clients can edit, we have to setup Option pages using ACF Pro and pull in the dynamic data from ACF into a text component.
Examples of this feature or functionality. I don't think it's been done.