-
Notifications
You must be signed in to change notification settings - Fork 37
Add compatibility with Custom Contact Forms #128
Comments
@bsusala Does the screenshot ☝️ depict what you're seeing and the problem you're experiencing? |
@bsusala thanks. The reason why the form doesn't appear here is because of #96. Since You do see forms listed if this workaround is applied: tlovett1/custom-contact-forms@9090be7 However, it doesn't add much value as is. Here's the panel: And the section: But, even on the admin edit post screen for forms, you can't actually edit forms in that context either, right? It seems there's no UI for form editing outside the context of the metabox that opens on the edit post screen, and so the focus should be on the “Add Form” button in the editor. For the Forms section, I suggest adding a plugin that just prevents the Forms post type from appearing in the Customizer at all: add_action( 'wp_loaded', function() {
$post_type_obj = get_post_type_object( 'ccf_form' );
if ( $post_type_obj ) {
$post_type_obj->show_in_customizer = false;
}
} ); |
Well, you are right. But UX-wise, there should be resolved the obvious "There is no form in Preview", which is not correct. Maybe changing the verbose: "There are forms, but they are editable through their original UI etc." :) Anyways, I am not so expert in forms and or plugins, so I do not know if other forms are editable in Editor, or though their plugin interfaces. So maybe keep any editable field from forms which makes sense (if any, like you did with title), and then suggest the user to go where appropiate. Also, if there is no relevant use case, maybe strip the Form Editing section altogether, until the time is right. |
@bsusala the problem is that the Customize Posts isn't even aware that there are editable forms. The only way it knows about there being posts of a given post type is if they pass through the wp-customize-posts/php/class-wp-customize-posts-preview.php Lines 127 to 147 in 6fdb4ee
This will be remedied when we have a way to look deeper into when Can you confirm that you do see an “Add Form” button when you open a post/page to edit in the Customizer? But that clicking this button does nothing? Adding a UI via the Forms panel would be something that Custom Contact Forms would need to add support for. Fixing the button in the editor would be something Customize Posts could add support for, or rather upstream a fix for. |
I can see [Add Form]. I also have another button for a plugin named Calculated Fields Form. Both are doing nothing when clicked. |
Merged upstream. |
See https://wordpress.org/support/topic/other-plugin-metashortcodes-does-not-show-in-editor
The text was updated successfully, but these errors were encountered: