Torino
Account created on 25 July 2014, over 10 years ago
#

Merge Requests

Recent comments

🇮🇹Italy Idas Torino

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)

🇮🇹Italy Idas Torino

You probably need to look at the documentation .
Are you sure you inserted a superfish block?

🇮🇹Italy Idas Torino

Idas created an issue.

🇮🇹Italy Idas Torino

Great! It works perfectly for me. Thank you.

🇮🇹Italy Idas Torino

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

🇮🇹Italy Idas Torino

Idas changed the visibility of the branch 3422018-use-others-plugin to hidden.

🇮🇹Italy Idas Torino

Idas changed the visibility of the branch 3422018-use-others-plugin to active.

🇮🇹Italy Idas Torino

Idas changed the visibility of the branch 3422018-use-others-plugin to hidden.

🇮🇹Italy Idas Torino

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.

🇮🇹Italy Idas Torino

It would be very nice to be able to integrate this functionality.

🇮🇹Italy Idas Torino

console log:
color-spectrum.jquery.js?v=1.8.0:15 Uncaught TypeError: Cannot set properties of undefined (setting 'optionPluginColorSpectrum')

🇮🇹Italy Idas Torino

@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.

🇮🇹Italy Idas Torino

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.

🇮🇹Italy Idas Torino

Idas created an issue.

🇮🇹Italy Idas Torino

Same error for me with Drupal 10 and the latest version of this module.

🇮🇹Italy Idas Torino

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.

🇮🇹Italy Idas Torino

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).

Production build 0.71.5 2024