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

Error while creating bubble chart using google lib

Hi All,

I am using google/charts version 51 lib  https://www.gstatic.com/charts/loader.js

Created view using webform submission, however when I run my view, I get below errors.

Send a php variable to .module

Hello everybody im new in drupal and im doing a new payment gateway. I have a problem, i have a block for this module that show the total cart price 

I have a problem with the variables. I can't use a variable from class.php. I can use the variable, if the variable exist in .module:

i have commerce_payment_cetelem/src/plugin/commerce/PaymentGateway/PaymentOffsiteForm.php with this variable:

Contextual filter in drupal 9 duplicate content issue

I'm having a problem displaying taxonomies in a view. The problem is that when I use the contextual filters, the contents are duplicated.

Any suggestion about this?

In the views use the next contextual filter: 

(Parent) Taxonomy term: ID of the term

Thanks in advance.

D8. How to connect the JS file of your module below the Geolocation module connection?

D8. How to connect the JS file of your module below the Geolocation module connection?

This does not work:

name: Dummy
description: Dependent fields are here too. And the creation of a Node based on them. Hooks for dat.
type:module
core:8.x
version: 1.x
package: Miltorg
dependencies:
  - geolocation:geolocation

Thank you very-very much.

How can i preprocess variables php to js

Hello im making a module and im trying to pass a php variable to js.

I have a php class and i try to make something like this:

$hello['welcome_message']['#attached']['library'][] = 'commerce_payment_cetelem/js_cetelem';
$hello['welcome_message']['#attached']['drupalSettings']['data']= "hello";

In the javascript i did:

(function () {
  'use strict';
var data = drupalSettings.data;
console.log(data);
})();

In the info.yml i add the dependencies

ID in table

Hi, in a module I have to manage a table that I fill with the result of a query
The $ nodes array contains the query result

$nodi = $this->q( $storage, $dData ) ;

With foreach ($nodi as $row) {
I loop the array and fill the table.

$form['table_dispo'][$row->nid->value]

A table field is an autocomplete entity reference that invokes a callback

Pages

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