Most active questions

-2 votes
1 answer
90 views

How to install Drupal CMS using Composer?

Can composer be used to fetch the code for Drupal CMS, like for Drupal 10, 11? For example, Using Composer to Install Drupal and Manage Dependencies provides this for Drupal core: composer create-...
therobyouknow's user avatar
0 votes
2 answers
96 views

How can I disallow blocks and views from being cached by render cache?

I have read a couple of similar questions and tried various methods in these tickets to disable any caching for this particular page of the site in Drupal 10 to no avail. These included invalidating ...
Alimba's user avatar
  • 127
0 votes
2 answers
43 views

How can I show user chosen selected options in Views Header Results?

Using Drupal 10. I have created a page view that shows teaser content (using layout builder) of a given content type, and have an exposed form that gives the anonymous user/ website visitor options to ...
Notion's user avatar
  • 21
1 vote
1 answer
71 views

Why can't my kernel test find my module in sites/default/modules/custom?

TL;DR: I'm trying to write a kernel test for a module located on sites/default/modules/custom/example_module, but Drupal fails to find the module to install it in the test. I have a Drupal 11 multi-...
TravisCarden's user avatar
0 votes
1 answer
33 views

How to group webform elements (only) visually

In my webforms, I would like to (visually) group certain elements for my visitors: I've successfully managed to build this using container elements (sections) in the Drupal webform backend ui. ...
Tinto's user avatar
  • 61
-1 votes
0 answers
43 views

How to leverage the Migrate module to export to json

I need to migrate D10 content to JSON. An obvious response might be why not use Drupal core JSONAPI? Although that does create a JSON output, I don't see much control over the structure of the ...
sea26.2's user avatar
  • 1,023
0 votes
2 answers
31 views

How to define Trusted Host pattern in settings.php via Docker environment variable

I'm trying to add the Trusted Host in settings.php via the Docker environement variables and it doesn't work, When I tried to hardcode the value in 'trusted_host_patterns' it works fine. Drupal ...
sam's user avatar
  • 1
0 votes
1 answer
76 views

Error when trying to upgrade from D10 to D11 with Composer

Working on a local Windows environment, with Composer 2.8.8 and PHP 8.4.6. I'm trying to upgrade a Drupal site from 10.4.6 to 11.1.0 (or higher). The site was initally running Drupal 10.1.4 and I've ...
s427's user avatar
  • 737
0 votes
1 answer
37 views

Set default values of number fields in custom webform element

My custom webform element, which extends Number, should get some default values for the number fields: protected function defineDefaultProperties() { // Here you define your webform element's default ...
macbert's user avatar
  • 414
-1 votes
0 answers
77 views

I cannot upgrade to 10.4.6 with Composer, on a Debian server

I have installed my Drupal website on Localhost; the upgrade got smoothly. On a Debian server, the backend of the website still says that a core update of my website is not finished. When I run on ...
Riani Hossine's user avatar
0 votes
1 answer
32 views

Prevent image cropping on desktop, only apply responsively

We are currently maintaining a website that was built with Drupal 7. On the homepage, there is a slider displaying images with a resolution of 1920 x 1080 pixels. Our client recently contacted us ...
Niklas Eberhöfer's user avatar
0 votes
0 answers
32 views

Access denied on checkout for programmatic anonymous order with shipping

I created a custom Form to populate a commerce order programmatically, with an anonymous checkout flow and shipping enabled. The code in the Form's submitForm() method is as follows (it is a base-...
Headbank's user avatar
  • 143
0 votes
0 answers
36 views

OpenLiteSpeed/CyberPanel Incorrectly Gzipping a single aggregated CSS file

I'm seeking help with a persistent issue regarding Drupal 11 CSS aggregation on my server setup. I hope someone might have encountered this or have some ideas. My environment is the following. Drupal ...
Trung's user avatar
  • 9
-4 votes
0 answers
26 views

Issues with SimpleSAMLphp authentication: account linking and URL cleanup

I'm working on a Drupal 9.5.11 site and using SimpleSAMLphp (version 2.0) along with the simplesamlphp_auth module for SAML-based authentication. I'm facing the following issues: Account linking ...
Shamli Joshi's user avatar
0 votes
1 answer
88 views

Ajax event not added once the form is rebuild

I have a product addition form in Drupal 10 that uses AJAX. When I click "Add to Cart," my function correctly adds the product to the cart via AJAX. After the addition, my AJAX function ...
lucrece's user avatar

15 30 50 per page