Newest Questions
88,144 questions
-1
votes
0
answers
18
views
How can I do sequential API calls? [closed]
I need to make several API requests, but each request depends on the previous one or needs to be made in a sequence because the order of requests is essential for processing the data correctly.
How ...
0
votes
0
answers
18
views
How do you pass submission values via a token into a "post" handler?
This is on Drupal 10.5.x...
I have a very normal webform, that is pushing data to Pardot, via the "webform_pardot" module.
In the mapping, we have.
email|email
first_name|first-name
...
3
votes
1
answer
126
views
drush ws --tail: The "--tail" option does not exist
(Before I get smashed, I'm aware of Unknown option `--tail` when running `drush ws --tail` ... however, that question is now closed, and the answer there merely points to an old issue, so I'm re-...
1
vote
0
answers
18
views
Configuration abc.config depends on abc extension that will not be installed after import
I have a problem trying to import a webform config.
The form uses a custom handler that was written by my workmate in a custom module called xyz.
In the module, it declares and use a config named ...
2
votes
1
answer
31
views
Is there a config setting or contrib module to update cart items when the correlated products are changed?
Scenario:
Add a product to cart
Order items created 🎉 but do not proceed to checkout
Change product price
Proceed to checkout
Observed behavior:
Cart item price in #4 is the same as #1
Order item ...
0
votes
1
answer
23
views
Using the Rules module to create a basic page node with the body field when an article is saved
I have a Drupal 7 rule which creates a basic page when an article is saved, using the title and author fields from the article. I can't get the body field copied over.
This is the export code from the ...
5
votes
2
answers
87
views
As a module maintainer how can I safely remove a dependency module?
Let's say I maintain a module on drupal.org and inside its *.info.yml file there's this dependency:
dependencies:
- jquery_ui:jquery_ui
Now I refactored my module and replaced all jQuery with ...
0
votes
0
answers
23
views
Order does not recalculate just before sending user to external payment
Summary: Customer could be charged a different amount from what is displayed in the Payment step panel if an auto-applied promotion gets published or unpublished before external payment is triggered
...
0
votes
0
answers
19
views
get content field for webform attached to that content type
I have a content type for coop meetings, with fields for date and time, agenda, attendees, and minutes. When the content is created, a date and agenda are added; this is effectively a meeting ...
0
votes
1
answer
27
views
Missing Google Tag Manager Config Under System
I installed/enabled the google_tag module on our website. I can see the configuration for this module under Web Services / Google Tag. This appears to be requesting a Google Analytics measurement id ...
0
votes
0
answers
11
views
Include attached file contents in search result for the node they are attached to, with solr search and view
I have nodes representing meetings, each of which has file fields with one or more attached files - minutes, agenda, tabled documents and such like. It's important though that people get the context ...
0
votes
0
answers
19
views
How to edit/produce a customizable form?
I am new to Drupal. I was brought on to help update a client's website, initially mainly for CSS work but now for PHP as well. They are in the process of upgrading their Drupal version, but I'm still ...
1
vote
0
answers
37
views
How can I show the moderation state for each media revision?
I need to display the moderation state for each revision of a media entity. Currently, I can see the revision history of media items, but the moderation state isn't visible or associated with each ...
0
votes
0
answers
21
views
permissions and billing by entity instead of user
I have a Drupal 10.x site for a housing coop. Members live in an apartment in the coop. Some apartments have 1 member; some have 2 (e.g., a married couple). For those with 2 members, both people can ...
0
votes
0
answers
11
views
Location of text/file for commerce order receipt [duplicate]
Using Drupal 11.2.5 and Commerce 3.2.0
I may be going mad but i cannot customise the text or layout of the customer-order-receipt.html.twig file.
I have placed a copy in my theme's template folder and ...
0
votes
1
answer
13
views
How to use hot reload with vite when a PWA that uses cookie auth is hosted from a subdirectory?
I have a Drupal site (full regular Drupal site) that also has a PWA (decoupled frontend made with vite/React). This PWA is hosted at a subdirectory of my domain (www.example.com/pwa).
The PWA uses ...
1
vote
1
answer
52
views
How come a totally standard installation does not autoload enabled modules?
I consider installations like this pretty standard.
composer create-project --no-install drupal/recommended-project:9.5.11 .
composer config platform.php 8.1
composer config allow-plugins true
...
0
votes
1
answer
35
views
How to trigger custom code when node is saved via UI with Content Moderation enabled?
I'm developing a custom Drupal 9 module that needs to synchronize URL aliases from English nodes to all translations. The module works perfectly when nodes are saved programmatically (via Drush), but ...
0
votes
1
answer
12
views
Local site alias does not reference local multisite settings
I have recently started using local sites. While trying to run a drush command for the scss module, I realized it was not creating the compiling the css for the theme directory I was currently in, but ...
0
votes
1
answer
27
views
Responsive Image Style module not respecting sizes provided
I'm not sure where I'm going wrong here. I'm working on setting up several responsive image sets for various sized images and starting with small. I have two image styles for this, one scales to 200px ...
3
votes
0
answers
32
views
How do I override validation error messages?
I'm currently working on a Drupal 11 project where the client wants the validation error messages on the user forms to be a bit more user-friendly, i.e. "Please enter your email address" ...
2
votes
1
answer
80
views
SMTP source_ip option
My server has multiple network interfaces (each with its own IP).
Due to the hosting provider's security policy, outgoing connections to SMTP (port 587) are only allowed from a specific IP address — ...
2
votes
1
answer
69
views
How to make a list of field values extensible in a contrib module?
I am building a contrib module called Push Notification Registration Tokens. This module allows users to save registration tokens for push notifications (tokens to register devices, which function ...
0
votes
0
answers
19
views
How to create "Other events on this date" view (block)
I have a content type that has a field "field_start_date" that is a date/time field. I want to do a block on pages for that content type that shows other events from the same day. I set up ...
0
votes
0
answers
49
views
Interface isn't left to right when creating and editing nodes in English [duplicate]
Drupal 11 with Claro theme and an Olivero sub theme in Arabic to which I have added English. While English is written from left to right, Arabic is written from right to left.
My problem is that when ...
4
votes
0
answers
62
views
Is there a difference between the two POST methods in the webform module?
I'm using the form custom settings of the webform module to send newsletter subscription data to phpList through POST, which is working very well. The problem is only, that the phpList link is ...
3
votes
0
answers
39
views
CSP: Nonce value appearing on script but not policy
I'm using the CSP module on my site and attempting to add a nonce to my GTM script.
I'm able to get a nonce value on the script element, e.g. <script nonce="zRaBCyoyymExSEt4jIfolw"> ...
-1
votes
1
answer
63
views
How Do I Change Submit Button Label inside Off-Canvas Dialog While Using Gin Theme?
Gin theme keeps changing the IDs of form elements inside Off-Canvas dialog, so I can't target elements using their IDs. So if I try to make modifications from the buildForm() method of my entity form, ...
0
votes
0
answers
49
views
Facets v3 and ajax
Setup:
Drupal 11
Facets v3
view based on solr index - block
facets as exposed filters in view
view with ajax enabled
bef - to change filter to checkbox
I have a view based on solr index, where I ...
0
votes
0
answers
33
views
Simple fixed sales tax on products only; not shipping nor fees
When I add a Drupal Commerce Tax, Sales Tax, fixed percentage, the cart an summary are calculating tax on more than the product sub total.
I have the USPS shipping module and Commerce Fee to add a ...
5
votes
1
answer
112
views
How does YAML inheritance for sub themes work?
I am working on a modules to extend themes. I would like to use a YAML file for this, so that I can define properties in THEME.MYMODULE.yml. But I am struggling to inherit the properties from a parent ...
0
votes
1
answer
91
views
TRUNCATE TABLE page cache
My Drupal site is hosted on OVH. The database went over quota (more than 1GB), mostly because the cache tables were too large. I truncated them via phpMyAdmin (TRUNCATE TABLE ..), but now the site ...
0
votes
0
answers
50
views
Preserve leading zeros in a numeric field
I'm working on a Drupal 10 site, i have create a content type "Content" which includes a numeric field field_num. The issue is:
After the pubblication users need to enter values like 00123, ...
1
vote
1
answer
65
views
How to postSave referenced entities added in IEF complex form
I have a custom entity with entity references, allowing allow_new in the IEF complex form. Because I need to set some values on those child entities, I override postSave() in the parent entity. I ...
0
votes
0
answers
38
views
http auth for ical feed
I have an ical feed on a Drupal 10 site with Date/ical module. But the site is members only. I'd like to allow users to subscribe to ical using a calendar app (e.g., iOS Calendar, Thunderbird, Ubuntu ...
0
votes
0
answers
54
views
How can I change the alt text of a media entity in a template file without recreating the entire object?
In Drupal 10, we have products inside the Commerce module. The products have an associated cover image, which gets a (non-descriptive) alt text through an import process. We don't control that import ...
0
votes
1
answer
46
views
unable to push code on Drupal org
MacBook-Air zoomnow % git tag -a 7.x-1.1 -m "First official release"
MacBook-Air zoomnow % git remote set-url origin [email protected]:sandbox/joshi88/2554939.git
MacBook-Air zoomnow % ...
0
votes
0
answers
43
views
Issue with taxonomy term ID and views
I'm using Drupal 10 with the Bootstrap 5 theme. I created a pattern with product/tag/[term:name] and set up a few brands in the taxonomy. The links became, for example, mysite.com/product/tag/brandone ...
0
votes
1
answer
99
views
Can I change the field type of the title field in a custom content?
If I create a custom content type in Drupal 10, it has a title field whose type is text. Can I change it to number?
The content type is apartment, and the natural title is the apartment number. It'd ...
0
votes
1
answer
146
views
Setting title not working on a single custom entity edit form
What circumstances could make setting a title to a regular custom entity edit form fail completely? The title displayed is the result of calling $entity->label(). _title or _title_callback in ...
0
votes
1
answer
39
views
Source tab missing from Webforms
ISSUE
After updating to Drupal 10.5.2 and Webform 6.2.9, the "Source" (YAML) tab is missing from the Webform builder interface, even for admin users with full permissions.
What I’ve tried
...
0
votes
0
answers
48
views
I force dir="ltr" but Drupal or CKEditor brings back dir="rtl" - how to solve that if at all possible? [duplicate]
In Drupal 11.2.2 with Arabic as main language and English as a second language, I have a node set to English.
When I edit it, I use the following JavaScript code to make everything have an ltr ...
1
vote
0
answers
81
views
How to install Open Social with a secure Drupal core version? [closed]
I’ve been trying to install Open Social via Composer, but I keep running into the same issue:
Open Social 13.x requires Drupal core 10.3.9, which currently has a reported security advisory.
Open ...
-2
votes
1
answer
62
views
DrupalGap for Drupal 10 [closed]
I try to update drupalgap 8 to be compatible with drupal 10. After updating some line ofr code in de drupalgap.module file my test connexion (link https//..../admin/config/services/drupalgap) word ...
1
vote
0
answers
57
views
$form_state->setRedirectUrl() is ignored on my custom exposed form submit handler
I'm using hook_form_alter() to add a custom submit handler to an exposed Views search form that's supposed to redirect the form after submitting, but it is being ignored.
I've confirmed that the ...
2
votes
1
answer
157
views
How do I translate a route?
I want to translate a route so that the same controller can provide content at the path for each language. I would like to do this with one route, but I do not see any way to do that. Instead, I have ...
1
vote
2
answers
112
views
SDC component CSS files are not being picked up on a page reload, requires "drush cr"
Working in the .../themes/custom/mytheme/components/component-name/component-name.css standard, none of the changes to this CSS file are seen in the browser until I do a drush cr.
I do have ...
0
votes
0
answers
103
views
How can I update when an unsupported Composer plugin is used?
I get this error message when I use Composer to update.
Your site cannot be automatically updated until further action is performed. An unsupported Composer plugin was detected.
drupal/core-recipe-...
0
votes
0
answers
76
views
cache_page table too large [duplicate]
I'm working with a Drupal 10 website in production hosted in a Windows VM using WAMP (Apache + MySQL).
The site contains multiple pages with images.
However, the database size keeps growing rapidly, ...
0
votes
0
answers
69
views
Set value in form Ajax callback to be used in validation
I have a Commerce checkout form consisting of multiple panes where I need to make some decisions concerning later validation in an Ajax handler. I would like to store some simple value like a bool ...