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

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.

Add Taxonomy to form created with form api

I've written a custom module with several forms created via form api.   I'd like to classify the forms with existing taxonomy.      I don't want to add a form element that allows taxonomy selection, I want the form to be classified so that it shows up in taxonomy pages.    

I've googled, but nothing is showing up related to forms except how to create a taxonomy select.    How do I do it?

Thanks for the help!   

My form is created in a module file. color_calc/src/Form/DefaultForm.php

<?php

Need to create notification system for sending friend request

We have requirement where we need to show "CONNECT" button under user profile for sending Friend request with 'accept' and 'reject' option.

When user accepts friend request then under his user profile pic button should change to "MESSAGE" to send the message.

Whoever sends friend request it should be shown in notification widget near user profile image. I used private_message module however it just sends message as chat directly without sending friend request.

Friends modules does this, however is not compatible with Drupal 9.4 version.

Pages

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