-
Notifications
You must be signed in to change notification settings - Fork 9
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
feature/Ny modul Modal CU 865cn09xb #441
feature/Ny modul Modal CU 865cn09xb #441
Conversation
annalinneajohansson
commented
Jul 3, 2023
- (add) ACF fields for module Modal
- (add) New module "Modal"
Task linked: CU-865cn09xb Ny modul: Modal |
…nt pages (add) Set mod-modal-content to not be publically queryable (ie not have their own singular pages)
…false to register_post_type
…content" since modules posttypes prefixes with mod-
…r the current post type in "enabled-post-types"
…tions for the current post type in "enabled-post-types"" This reverts commit 2ca58f4. Will fix in separate task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small changes, otherwise great!
* @param object $editorContext The editor context. | ||
* @return array The updated allowed block types. | ||
*/ | ||
public function disallowBlockType($allowedBlockTypes, $editorContext) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be replaced with this option on module creation.
https://github.com/helsingborg-stad/Modularity/blob/3.0/develop/source/php/Module.php#L105
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not following your thought here; can you please explain? The module is meant to be available as a block, but not on the modal-content
post type. I'm not finding any way to detect the post type currently being edited whilst registering the module.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |