How do I reference images through CSS in a library within a module?

Hi.

I have created a module, added a library, added CSS and JS.

The CSS and JS load correctly. However the images referenced in the CSS file aren't loaded. Drupal is looking for them at the wrong path.

Under mymodule.libraries.yml

Multiple instances of a block

I need to put a block in more than one region (multiple instances).

As per the following link: https://www.drupal.org/project/multiblock, this feature or functionality is included in Drupal 8 core, however I am unable to find it.

Can someone point me to the right direction please.

[Solved] How to edit $form_state value in hook_form_alter

I was able to read value from a $form_state object using

$first = $form_state->get("field_first_value");

but various attempts of updating this value have failed

$form_state->set($form['field_second_value'], $first)

and

$form_state->setValueForElement($form['field_second_value'], $first);

and even

Shared webform error

Sharing webform via iframe or javascript causes an error.

Drupal\webform\WebformException: The webform_name webform [webform_name] has overridden settings and/or properties and can not be saved. in Drupal\webform\Entity\Webform->preSave() (line 2266 of modules/webform/src/Entity/Webform.php).

? about uninstalling a D8 module and content

I have a D8 site built with tarballs and GUI and am in the process of composerizing it and then upgrade it to D9.  I'm working locally using DDEV. The live site uses a module (video) for which there is no D9 version, so I am going to have to uninstall that module. As I understand it, in D8, that means also discarding any content managed by that module. I have two questions:

How could I use one exposed filter for two different content types?

Hello all!

Here is my question:

How could I use one exposed filter for two different content types in an advanced search context?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x