Hi @man-1982, the patch isn't applicable also on my site.
After patch, the error it's the same:
TypeError: Drupal\Core\Render\MainContent\AjaxRenderer::renderResponse(): Argument #1 ($main_content) must be of type array, null given, called in .../core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php on line 89 in Drupal\Core\Render\MainContent\AjaxRenderer->renderResponse() (line 49 of .../core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php)
I am interested too.
You probably need to look at the
documentation →
.
Are you sure you inserted a superfish block?
Great! It works perfectly for me. Thank you.
I think it mostly works with the theme you're using for your backend.
Example in the my style_options.yml:
align_group:
plugin: group
label: Align
align_box:
plugin: css_class
label: Box Align
default: None
group: align_group
options:
none:
label: None
left:
label: Left
class: u-align-left
center:
label: Center
class: u-align-center
right:
label: Right
class: u-align-right
align_content:
plugin: css_class
label: Content Align
default: None
group: align_group
options:
none:
label: None
left:
label: Left
class: u-align-left
center:
label: Center
class: u-align-center
right:
label: Right
class: u-align-right
paragraphs:
_defaults:
options:
...
align_group: true
align_content: true
align_box: true
Idas → changed the visibility of the branch 3422018-use-others-plugin to hidden.
Idas → changed the visibility of the branch 3422018-use-others-plugin to active.
Idas → changed the visibility of the branch 3422018-use-others-plugin to hidden.
Okay, I understood how to do it. In StyleOption, you need to create a new plugin, declare it in the style_options_theme() function in the style_options.module, and finally, create the dedicated Twig template.
It would be very nice to be able to integrate this functionality.
console log:
color-spectrum.jquery.js?v=1.8.0:15 Uncaught TypeError: Cannot set properties of undefined (setting 'optionPluginColorSpectrum')
@Carlitus, you really think you laid it all out? 'Cause you programmers ain't blessed with the empathy gift. Sure, it's all crystal clear to you since you're the "pro player", but anyone stepping into this for the first time needs some extra deets for what it's used for and how to insert it into the yml files. I've got a yml with some options set (like a demo), but only two are playing nice. Without some proper docs, it's a real uphill battle, man.
I feel you, dude. I've got the same issue. Seriously, I can't wrap my head around why creating a guide for a plugin has to be such a pain.
Same error for me with Drupal 10 and the latest version of this module.
I apologize; so far, I had only inputted one role. Upon adding multiple roles and, consequently, more forms (one for each role), I just now realized that what was requested already exists.
Thank you for the suggestion Samir, but:
1) The module already does what you're describing (it's specifically designed for that).
2) My request is not about showing or hiding a field, but about making it mandatory or not on different forms (using the same field).
Idas → created an issue.