Modules

Hello.

I created a multisite installation.

I read that in drupal (I guess) 8.8.0 or above I can install specific modules for specific site, adding the module directory in the /sites/newsite/modules/newmodule

I downloaded a different module in 2 sites in the Drupal 8 web user interface, and the modules are all installed in web/modules directory regardless of the site.

The modules are only installed in the /sites/newsite/modules/newmodule when are installed via command line?

Thank you.

Regards.

Download contributed modules and themes using Composer

I'm just testing drupal 8.8.4 I have installed it with composer.

I created a multisite installation.

I like the idea of composer controlling the dependencies.

I can easily install a contrib module and a specific version of a module.

I can define the directories to which modules, themes, libraries, etc. should be downloaded.

like /sites/sitename/modules directory for specific site of a module.

But is it possible to do these modifications in composer.json if I use drupal/recommended-project installation type?

Thank you.

Run AJAX cascaded

I am new here, just started to write a module. I am facing a issue to calculate a field and then calculate another field. Here in example, calculate amount in a line item, and on the field amount changed, calculate the total value.

Here is the total value field.

 
    $form['total']['#prefix'] = '<div id="total_value">';
    $form['total']['#suffix'] = '</div>';
    $form['total']['#attributes']['readonly'] = TRUE;

This is the field definition

How to load entities with Null value in Drupal 8

The following fails with an invalidqueryexception

\Drupal::entityTypeManager()->getStorage('foo_module_division')->loadByProperties(['enabled'=>TRUE, 'parent_code'=> NULL]).

How else do I specify that I want to load entities whose parent_code field is NULL

Drupal 8 - User Points - tutorial & where are the points

I used have been using user points on a D7 site without a problem.

Now I want to reward users for contributions on a new Drupal 8 site, but ther is no documentation to guide you through the new process??? Or did I miss it? All hints and suggestions welcome.

And maybe someone could give a shortcut to where I find and can update the user points set into my site by magic.

I have the follwoing modules installed:

index.php access denied

Hello, 

 I have reviewed a lot of posts from the forum before creating a new one. i can´t really find any other post just like this, they are similar but I can´t use their solutions. 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x