I am trying to export data as a txt file that is grouped by a taxonomy. I have tried using the module VIEWS DATA EXPORT but this does not allow you to group that data like the functionality in other views areas. (from what i can see.)
What i am looking to do is to create an export in the following layout, the record can have more than one taxonomy associated with them, so could appear more than once in the export file.
I have D8 module that works well. But I have a problem. Sensors data are stored there (in database tables).
In the website the cache is disabled, but the selected data are not updated. If I use the "drush cr" then ok, but the next selected data are not updated.
How can I solve this? I tried for example:
#
# data SQL SELECT form
#
function buildForm()
//...
$form['date_from'] = ...
$form['date_to'] = ...
$form['#cache'] = ['max-age' => 0];
/// ...
I need to embedded a php code in my web made with Drupal 9 because I need to migrate a database (that use a query with php code) made in Drupal 6 to my new web. I see that in the old web I can choose an input format "php code" for this page in order to embedded the php code, by using the PHP filter module. How could I do for Drupal 9? I was searching a module but I couldn't find anything.
I'm experimenting with how to customize an auto-complete field.
Filter the nodes in bae to various parameters
The code is this
$storage = \Drupal::entityTypeManager()->getStorage('node');
$qry = $storage->getQuery()
->condition( 'type', 'anagrafica_richiedenti' )
->condition('status', 1)
->condition('field_attivo', 1)
->sort( 'title', 'ASC' )
->execute();