Category "drupal"

Drupal cannot access MySQL Docker container

This is relevant for Drupal 8.9.3, MySQL 5.7 and Docker (with docker-compose.yml) file. Specifically on the Drupal Install step "Set up database", Drupal throws

Drupal9: Saving form as node in SQL (custom module example)

i develop a custom module with forms to save data in SQL-Datebase. I want to use for that the node-structure. Normal SQL-savings for example table works but not

How do you adjust the width of a custom composite's element? (Drupal 9 webform)

A webform I am customizing has 9 elements in a composite. Since there are too many of them, the composite is exceeding the fieldset you will see below. This is

Drupal9 custom module

Can anyone plz provide me the zip file of a simple custom module in drupal 9. I am having so much trouble in making a simple module. I have seen so many tutori

how can I set a session variable in Drupal 8 and get it in a php script?

I'm working in a custom module for drupal 8. I have a form and I'm trying to send by means of a submit button some data from my custom module to another php scr

Convert rows to columns using Twig - D8

I have a content type "Awards" that has data structured as below: I want to group this data as below: Want to group them on a "State" basis. So when I click on

Drupal 8: how can I add a class in form tag

How can I add a class in the form attribute within a custom form? Similar to the below: <form class="mu-subscription-form"></form> I have created

MISSING UPDATES FOR: MEDIA Drupal 9

I have started facing an issue with locally hosted Drupal 9 (Xampp, Windows 10). The issue started when I was trying to create events in drupal 9 and I was redi

How to map URL requests for vBulletin posts to Drupal 7 Forum comments after migration?

I need help to map requests for vBulletin posts to their new location on a Drupal 7 forum. I inherited a Drupal site after it was migrated from Drupal 5 with v

Getting Taxonomy term name from target ID - D9

Getting Taxonomy term name from Taxonomy target ID: I have a taxonomy term that accepts multiple values. It's rendered as a multiselectfield. I am trying to rea

Apache solr search result view Drupal 7

I am working Apache solr search its working fine. But I need to change the search result to my view like title, date, short description and image. Can you pleas

Remove default message in drupal 8

In Drupal 7 if ($_SESSION['messages']['status'][0] == t('Registration successful. You are now logged in.')) { unset($_SESSION['messages']['status']); }

libraries-override not working on Drupal 8

I'm trying to figure out how I can remove the default css libraries of Drupal 8 on the theme I'm working on. I tried using libraries-override: to remove a speci

Drupal 7 Apachesolr: hook_apachesolr_query_prepare() not being called?

I've been struggling with this for a few hours now. I've tried everything I can think of but can't seem to get the hook hook_apachesolr_query_prepare() to fire.

Drupal Installation Default Page not loading css

I recently installed Drupal on Windows Server I had no errors on installation. There was a warning for OPCaching. I also don't think it should affect it but I u

dompdf and img tag, image wont show

Here is the HTML just before $dompdf->render() and $dompdf->output() are called: <img src="http://www.example.com/images/Logo.png" /> All other i