Een hart voor de Drupal Community

Bij make it fly geloven we sterk in Drupal en Open Source software in het algemeen. We maken dagelijks gebruik van vele open source componenten en de vele Drupal modules die beschikbaar zijn. We dragen actief ons steentje bij aan de community door zelf patches, modules en documentatie te voorzien, daarnaast zijn enkele teamleden ook actief in de Drupal User Group vzw.

Een overzicht van onze bijdragen aan de Drupal community vind je terug op onze Drupal.org pagina. Naast het actief meerwerken aan de Drupal community, zetten we ook andere ontwikkelaars op weg door vragen te beantwoorden op Drupal Answers.

  1. Automated Drupal 11 compatibility fixes for context

    Fons

    I applied MR 35 as a patch:

    https://git.drupalcode.org/project/context/-/merge_requests/35.patch

    But then the D11 compatibility patch didn't apply anymore after that so I made a new one (in attachment) that does work.

    Apply it after the above patch.

  2. Stable version release?

    Brecht Ceyssens

    Hi d34dman,

    I moved the field formatters to a separate submodule so the core can be easily used by other module like RIFT. Looks stable enough for me now: https://www.drupal.org/project/combined_image_style Updated the module's page and mentioned your module as well.

    Let me know if i can be of any further assistance.

    Kind regards Brecht

  3. Close Layout Builder Browser on placement of block

    Sven Decabooter

    Problem/Motivation

    Related to #3344334: Settings Tray does not close on placement of block, when using layout_builder_browser module, instead of the default settings tray, the browser window should also be closed upon placement of a block from within the iframe.

  4. Offering to co-maintain layout_builder_iframe_modal

    Sven Decabooter

    Problem/Motivation

    I would like to become a co-maintainer of this module to merge the Drupal 11 compatibility patch along with any appropriate RTBC issues and create a D11-compatible release.

    You can view my profile to see my large history of work.

    Proposed resolution

    Review my profile and, if approved, add me as co-maintainer with appropriate permissions to merge code, manage issues, and create releases.

    Remaining tasks

    Add me as co-maintainer for this module.

  5. Explore adding conditions to price list items

    Randal

    I was looking for this functionality as well. We have a website that has pricelists 'linked' to a value on the user entity.

    We import our pricelists from an ERP, and we've worked around this issue by hooking onto the user & pricelist insert/update events.

    Pricelist on insert/update: - Find all users with the custom value and attach them to the customers field User on insert/update: - Remove the user from pricelist(s) with the old value (if applicable) and add to pricelist(s) with the new value

    The main problem here is that, if no users have the value of that pricelist, the pricelist applies to EVERY user. That's something that conditions would have easily solved. In our use case, we've solved this by creating a 'dummy' user and if no other users apply for the pricelist, we attach the 'dummy' user to the pricelist.

    Configuration/development wise this would have been much faster and cleaner if we had conditions, but I understand the argument of speed is a factor here too. I'll set this as postponed, it's not and hasn't been really an active issue and if the need arises later on it can be reopened.

  6. The xls encoder doesn't strip tags when no setting is provided.

    Randal

    Ah.. my bad, you're absolutely right. I overlooked the default value of the class property.

    I'm not sure if a backport to 1.x is still necessary, I suppose it depends on how long 8.x-1.x will remain supported? If it will, then maybe it would be good to have that fix there too 😇

  7. The xls encoder doesn't strip tags when no setting is provided.

    Randal

    Hi @mably, apologies, I hadn't seen that!

    Although if I'm not mistaken that doesn't entirely fix the issue I was experiencing, because the encoder will still not strip tags or trim strings unless a setting is specifically provided (whereas before it would strip/trim by default).

    With the fix currently in the 2.x branch, the warning message is gone, but if the encoder is used in Views Data Export it'll still let any and all HTML through (without the possibility of configuring it otherwise 😞).

    It would be easily solved if encoders allowed configuration forms, but since (I think?) they don't, would it be preferred to keep the old functionality intact?

  8. The xls encoder doesn't strip tags when no setting is provided.

    Randal

    Problem/Motivation

    The issue #3108301 has caused a regression for me. When using a views data export (so the 'data export' style, not the excel export style), and combining that with the format "xlsx" (using the XlsxEncoder from this module), values aren't trimmed or stripped of html tags. This happens because the last 2 settings below aren't provided with any values (so also no default values).

    // src/Encoder/Xls.php Lines#386-399
    protected function setSettings(array $settings) {
      // Temporary fix this until it would be fixed at the views_data_export.
      if (isset($settings['xls_format'])) {
        if ($settings['xls_format'] == XlsSerializationConstants::EXCEL_2007_FORMAT) {
          $settings['xls_format'] = 'Xlsx';
        }
        if ($settings['xls_format'] == XlsSerializationConstants::EXCEL_5_FORMAT) {
          $settings['xls_format'] = 'Xls';
        }
        $this->xlsFormat = $settings['xls_format'];
      }
      $this->stripTags = $settings['strip_tags'];    // <----
      $this->trimValues = $settings['trim'];           // <----
    }
    

    Steps to reproduce

    • Create a data export display (NOT excel export)
    • Select .xls(x) as your request format
    • Add some fields
    • Result: some fields will be formatted as HTML, not stripped from their tags

    Proposed resolution

    Perhaps we should provide default values to these settings, to preserve the functionality prior to #3108301?

  9. Respect front page configuration

    Fons

    Just checked if it was possible to alter the patch for it to work again.

    Looks like it's more work than I anticipated due to https://www.drupal.org/project/simple_sitemap/issues/3484114

  10. Better Exposed Filters 'links'-element remove doesn't work as expected

    Randal

    Thank you for the nice module! Experiencing a small issue though:

    Problem/Motivation

    Clicking the 'remove'-button on a filter of the BEF Links-type doesn't work as expected, in the url it changes the following: `filter_name[delta]=value` to `filter_name[value]=`

    Steps to reproduce

    Using the following modules: - better_exposed_filters - facets_exposed_filters - facets

    Other facets (checkboxes BEF element) seem to work fine, but the links one suffers from this strange behavior.

    Let me know if I can provide any more information, I haven't been able to figure this one out yet myself 😞

  11. Facets exposed form block is empty if not on views page

    Randal

    I haven't got the time to fully debug this in facets itself, but in my case it was solvable by rendering it in a custom block like below. I had to render in a custom block anyway because I wanted to add extra items before and after the exposed filters, so this was a quick fix for me.

    /** @var \Drupal\views\Plugin\Block\ViewsExposedFilterBlock $plugin_block */
    $plugin_block = $this->blockManager->createInstance('views_exposed_filter_block:events-overview');
    
    // Make sure the facets are populated.
    $view = $plugin_block->getViewExecutable();
    $view->preExecute();
    $view->execute();
    
    return [
      // ...
      'filters' => $plugin_block->build(),
      // ...
    ];
    

    PS. BetterExposedFilter links might link to the current page rather than the view page.. Something else to keep in mind 🥲

  12. Facets exposed form block is empty if not on views page

    Randal

    I'm also experiencing this issue in a new project of ours using Facets 3.0.0-beta4, exactly as described above.

    On the view page itself, everything is fine. Anywhere else, all the facets are empty :(

    I'll see if I can find anything, haven't had the time yet to debug.

  13. Add dedicated permission for tools

    Sven Decabooter

    Problem/Motivation

    Currently all the tools use the generic permission check 'administer site configuration'. However, this is a pretty broad permission, which does not allow for fine grained access control. For example we would consider giving this permission to clients, but would not want the extra tools provided by this module to be accessible by the same clients.

    Proposed resolution

    Provide a module-specific permission to access tools.

    Remaining tasks

    - Add a module-specific permission - Provide upgrade path

  14. Scrolls to wrong position

    Fons

    Thanks works great, using the patch in #8 for now.

    Small nitpick: I noticed on mobile the 80% width makes small edits, on a phone for example, a bit hard.

    I'll try to find a solution for this and come back with an updated patch when I can find the time.

    Thanks!

Sven Decabooter - Drupal Developer

"Onze teamleden bouwen zelf ook mee aan ons geliefde Drupal, en daar zijn we trots op"

Sven Decabooter
Drupal developer

Betrouwbare technologie, naadloze prestaties. Dat zijn onze Drupal-oplossingen.