Account created on 8 March 2012, over 12 years ago
#

Recent comments

🇫🇷France benjbmc

@agentrickard great ! Many thanks and bravo for this work.

🇫🇷France benjbmc

I tested the patch on D10.0.2 with Domain 2.0.x-dev, it's OK for me too. Thanks @tim-diels !

Steps:

  1. Add patch to composer = https://git.drupalcode.org/project/domain/-/merge_requests/32.patch
  2. Apply the patch
  3. Remove and recreate the existing domain in backend
  4. Export config
  5. The config files system.action.domain_access_*.yml have updated dependencies, and the import is done correctly
🇫🇷France benjbmc

@chadmandoo about that :

Adding the core version requirement works. Can we get this in dev? Currently having to download manually.

In the meantime you can avoid the composer install error and install dev version using composer with the Lenient Composer Plugin .
Just do this before composer install :

$ composer require mglaman/composer-drupal-lenient
$ composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/eck"]'

And then the magic happens :-)

🇫🇷France benjbmc

The patch #31 works for me too, thanks! I had an error using the ebt_slick_slider module when adding media to the custom block: Uncaught TypeError: $element.dialog is not a function

🇫🇷France benjbmc

Thank you for the code @Anna D, it gave me an idea too. I needed to limit media access per user except for the administrator role. And indeed the contextual filter works well for the view list but not for the widget. Here is what I did, it seems to work:

function mymodule_views_query_alter(ViewExecutable $view, QueryPluginBase $query) {
  if ($view->id() == 'media_library') {
    if (!in_array('administrator', \Drupal::currentUser()->getRoles())) {
      $media_content_data = $query->setWhereGroup('AND');
      $query->addWhere($media_content_data, 'media_field_data.uid', \Drupal::currentUser()->id(), 'IN');
    }
  }
}
🇫🇷France benjbmc

Patch in #11 is working for me on D10.0.2, and my export tests are fine in CSV and XLSX (with contrib modules Views Data Export and Excel Serialization). Thanks

🇫🇷France benjbmc

Like @RgnYLDZ I also tested the module in dev version on D10.0.2 by simply changing the line in .info file :
core_version_requirement: ^8.8 || ^9 || ^10

Used with contrib module Inline Entity Form, no problem to report for the moment !

Production build 0.71.5 2024