Closed jmaas-onoffice closed 1 year ago
@jmaas-onoffice The Advanced Custom Fields block only integrates with ACF pro, can you give me the package of this version so that I can install and test it directly.
@dai-eastgate I'm unsure how the license works and you'd also need to set up the block. Can you test it by going into the code editor in Gutenberg (Ctrl+Shift+Alt+M) and pasting this block markup?
<!-- wp:onoffice/estate-list {"name":"onoffice/estate-list","data":{"type":"detail","_type":"field_61e9245a7717f","shortcode":"[oo_estate view=\u0022detail\u0022]","_shortcode":"field_619cca1ab882e","settings_bg_color":"white","_settings_bg_color":"field_6114d42173d5a","settings":"","_settings":"field_61a7a5fa927bd"},"mode":"auto"} /-->
Even though it will probably say that the block is invalid, maybe this is enough to test whether the plugin detects it?
@jmaas-onoffice I tried to add as you said, but i find that we need to create block field in advance custom field.
you can watch this video tutorial below
https://www.youtube.com/watch?v=z6hEogjGD1U
Right now i don't have advanced custom field professional plugin installation package for testers
Because I haven't created a block yet, it says that block doesn't exist
@dai-eastgate But does the plugin detect the detail page, even if the block is "invalid"? I think this might already work for testing and you don't need to build the block. Could you try?
@jmaas-onoffice I tried to test as you said, and the plugin detected the detail page. You can watch the video below and give me feedback.
You are not using the comment tag, <!--
. When I test it with the comments, which is how Gutenberg stores blocks, then it does not work.
Also I think that we need to change how the detail view is detected when a post is saved. I have tried it and pushed https://github.com/onOffice-Web-Org/oo-wp-plugin/commit/f42d5053065495addd8693fb09e2d65201086237 which works in my test.
So I'll close the PR.
Discussed in https://github.com/onOffice-Web-Org/oo-wp-plugin/discussions/431