20,283 questions
0
votes
1
answer
53
views
Drupal Constraint Validator: How to target specific nested field attribute without affecting entire link field?
Problem
I'm implementing a custom constraint validator in Drupal to validate a required icon attribute on a link field. The icon attribute is added via the "Link attributes" module and ...
0
votes
2
answers
85
views
public:// file URL gets index.php inserted
I upload a file to my Drupal 10.6.1 installation, and it shows up in the files_managed with the url public://12-25 Newsletter.pdf, but when Drupal writes the page that it appears on, the html is
<a ...
0
votes
1
answer
75
views
How to conditionally show/hide and make fields required in nested Drupal paragraphs based on parent block field selection?
Context
I have a custom block type with nested paragraph fields. I need to conditionally show/hide specific paragraph types and make certain fields required based on a select list value in the parent ...
1
vote
0
answers
77
views
How to add ajax for State select in address field
Under Drupal 11.2.5. I installed Address Module (2.0.4)
I want to trigger an AJAX request when the State changes in field_address. The state is named "administrative_area" in address field
...
1
vote
0
answers
78
views
Recalculate order just before sending user to external payment - Drupal Commerce and Paypal
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 just before external payment is ...
0
votes
0
answers
99
views
Drupal Views: How to add fields programmatically to a custom view in Drupal
I want to create a view in Drupal 11, but I want to add the values for that view through code. How could this be done? I’ve tried it, but the view appears empty and I can’t see the values. Here’s a ...
4
votes
1
answer
1k
views
lando rebuild rendering unknown manifest error
I have a Drupal project with lando based local development. my lando.base.yml looks like:
Services:
database:
type: mysql:8.4
creds:
user: drupal
password: xxx
database: ...
0
votes
0
answers
24
views
Activity pub account flagged as private on pixelfed
I'm implementing Activity Pub protocol on a Drupal website thanks to activitypub module (https://www.drupal.org/project/activitypub). The account is @[email protected]
It's working as ...
0
votes
1
answer
57
views
Drupal Open Social 13.0.0-alpha23 cannot be installed as recommended by vendor
Drupal distribution built on "super theme" Open Social 13.0.0-alpha23 cannot be installed.
This fails
stan@pc:/var/www/html/soc13$ composer create-project goalgorilla/social_template:13.0.0-...
0
votes
1
answer
99
views
How do I add the Dialog plugin?
The CKEditor5 dialog documentation gives a code snippet like this:
editor.plugins.get( 'Dialog' ).show( {
isModal: true,
// The rest of the dialog definition.
} );
However, this requires ...
0
votes
0
answers
55
views
Drupal checkbox and form field rendering nested labels
In my drupal project I have a form field:
$form['field_consent_abcd']['widget']['value']['#title'] = t('Test text <a href="@url" target="_blank">target url text</a>.', [...
0
votes
0
answers
44
views
Relationship is not preserved while migrating from mysql to Drupal
I am trying to migrate a relational tables songs and author and bridge table from a mysql database to drupal. Although songs and authors are getting exported but their relationship is not getting ...
0
votes
0
answers
37
views
How to prevent Drupal from making view feed links all relative
I have a Drupal 10 site where I created a view with an RSS feed. The links for the items are to various outside websites - for example https://www.yahoo.com/news_article.
The problem is that my site ...
0
votes
0
answers
41
views
Uncaught TypeError: can't access property "Contents", Drupal.Charts is undefined
I am getting the following error.
The code I am using is the following. It seems to work fine.
(function ($, Drupal) {
Drupal.behaviors.chartClickBehavior = {
attach: function (context, ...
1
vote
1
answer
43
views
Why are constraint plugins separate classes from their validators?
I'm teaching myself about constraint validators, in a Drupal application, and I'm a little confused by one aspect of the pattern. I'm doing this because Drupal 10 deprecates previous methods of ...