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

In hook_form_alter, more that one ajax.

Hello.

I would like to know if there is any possibility to execute more than once ajax commands in hook_form_alter?

Controlled by if constructs?

I have a form that has to be quite dynamic, that has to act on the fields, visible/invisible through form #states or another possibility.

In short, there are 5 fields that have to be visible/invisible through the variables that receive the if constructions.

What is the most appropriate way for this process?

Who can help me to convert a php-script into a drupal (D9) module

Hi,

I have a little php-script that shows when people where born on my https://fredbaltus.nl (lower right corner) page. I want to put that script also in a block on my drupal-page, but despite all the examples it is not easy for me. I can understand it better when i see a sample with my own php-code. Who can help me?

Drupal location response header routing to http instead of https

I am using drupal9 via nginx reverse proxy. Using the below nginx configuration.

WebP Images crashed on first load (chromium browsers)

Hello,

I'm having a problem with images after WebP module was installed and images being processed for the first time.

What do I get: image appears for a second and crashes. Console gives this error: net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK).
This happens only when image is loaded (uploaded) for the first time.

Image gets the .webp format and it's Content-Length becomes smaller but the browser still tries to get the bigger Content-Length - from the original image format.

Steps I do:

How to get url alias using views

Hi

I have an issue, I am creating a view and I would like to get url alias from some nodes but I can't find a field like drupal 7,

I've tried with twig but I can't get url alias just an url from this node.

{{ path('entity.node.canonical', { 'node': nid } ) }}

https://i.ibb.co/KWfNdW6/urlalias.png

commerce invoice using event

Hi im tring to make custom module calling an event from commerce invoice

Im trying to make different pattern for the invoice in Drupal 9. I have products with two kind of price one is for particular and the other one is for profesional.
I would like to have two pattern number for the invoice, for particular 22-ES-00001 and for profesional 22-ES-P-00001 and also for different country.

I posted an issue and one guy tell me to use the event INVOICE_CREATE and INVOICE_PRESAVE.

Pages

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