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

CORS error in custom rest resource module

Hello,

I built a custom module with three different GET rest resources. One of the three endpoints provides a list of library items, wich contains files in each entry. I can access the whole list in my Ionic App but when i try to access a file e.g. "https://islandora.traefik.me//sites/default/files/2022-02/pdf-test1 2.pdf" i get the following cors error:

Custom Select

I have a select linked to an entity reference
I select this in a callBack after choosing an employee, displaying only the nodes that the Employee can choose
The management and the filter work well, with the only exception that it does not allow me to save.
Checking the code I noticed that before the customization the array is composed by the ID and then by the description, under the Scren Shot
S.S.
The code to load the affected nodes is this

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.

Pages

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