This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Use reply with comments on forum module

Hi everyone!

I'm creating a forum using the core module, but I can't reply comments.

Do you know if it is possible with the core module?

Thanks!

Exporting Data grouped by taxonomy

Hi

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.

Location_tax: Nottingham

      company name: company_1

      company name: company_2

      company name: company_3

D8/D9 module data no refresh

Hi!

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];
/// ...

Thanks,

Gabor

managed file not allowing to replace a file

Hello.

I'm under D7, trying to build up a form with several file upload fields. I declared a new Streamwrapper.

Input format "PHP code" for Drupal 9?

Hi!

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.

Thanks in advance!

Autocomplete field

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();

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions