[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?

How does the Geolocation content of a page filter is a Views block ?

I have a website with Drupal 9 and the Geolocation module :

https://www.drupal.org/project/geolocation

I created a content type with a Geolocation field that contains coordinates.

My website uses the Olivero theme. I want to create a Views page with the summary my nodes and create a Views block with my nodes on a map.

The block must be on the same page, but it must be in the "Hero (full width)" region of the Olivero theme.

How to apply the exposed filter on the content and on the block ?

To reproduce the problem, you must install the Geolocation module :

https://www.drupal.org/project/geolocation

You must activate the geolocation_leaflet_demo submodule

https://ibb.co/C2VS6tN

You must place import the Views below and place the block on the page /demo

How to apply the exposed filter on the content of the page and on the map ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x