66 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
66
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
...
0
votes
0
answers
50
views
CKEditorError: plugincollection-plugin-not-found {"plugin": null} when integrating custom CKEditor5 plugin with Drupal 10
I am trying to integrate a custom CKEditor 5 plugin (LanguageTool) into Drupal 10 using a custom module. The plugin builds successfully, but when Drupal loads the editor, the browser console shows:
...
0
votes
0
answers
71
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 ...
0
votes
0
answers
67
views
Issue with Taxonomy Term ID and Views in Drupal 10
I'm using Drupal 10 with the Bootstrap 5 theme. I created a pattern with Pathauto: product/tag/[term:name] and set up a few brands in the taxonomy. The links became:
mysite.com/product/tag/brandone
...
0
votes
1
answer
46
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
0
answers
54
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
34
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
32
views
Facing the error in console in my drupal website - Uncaught TypeError: can't access property "Contents", Drupal.Charts is undefined
Facing the error in console how to solve this
(function (,ドル Drupal) {
Drupal.behaviors.chartClickBehavior = {
attach: function (context, settings) {
if (typeof Highcharts !== '...
0
votes
0
answers
81
views
Drupal 10 - How to display a list of nodes associated with a selected location on a map, both in a side panel and a map popup
I have a feature in this Drupal system I'm working on which has a map view (using Leaflet) that shows all terms under "Location" with the polygon as the highlighted area of the location. It ...
0
votes
1
answer
150
views
Drupal 10 CKEditor 5 Custom Plugin: "plugins.map is not a function" Error
I'm developing a custom CKEditor 5 plugin for Drupal 10.4.5. The JavaScript for the plugin seems to be loading correctly, and I've defined it in my module's .ckeditor5.yml file. The plugin aims to add ...
0
votes
0
answers
68
views
Console error: toolbarview-item-unavailable, Drupal 10, CKeditor 5 custom plugin (button to add tag small)
I'm trying to add a custom plugin that add HTML tag "small" via button in CKEditor 5.
I'm using this guide: https://lembergsolutions.com/blog/how-integrate-ckeditor5-plugin-drupal-9-10-...
0
votes
0
answers
68
views
Redirect works when I put a slash at the end of the URL in Drupal
I am trying to redirect a URL using the Drupal redirect module, but it doesn't work. It works when I try to use a slash at the end of the URL. The content type is page.
For example -
Redirecting ...
0
votes
0
answers
36
views
Views query to a non-related field
I have a unique ID for an entity (in this case a person). Due to the way the data was originally built and created, there may be up to 4 or 5 duplicate entries, but referencing different time periods. ...
2
votes
1
answer
64
views
I don't know how to change from at() to once() in phpunit 10 and above
The method function at() has been removed from phpunit 10 later.
I changed from at() to once() but my tests still don't pass
The test fails because you cannot order the condition() calls.
php code:
......
-1
votes
1
answer
98
views
Check for Content Type in paragraph.html template
I have 2 content types created in Drupal 10 using Structure > Content Types > Add Content Type:
Universal Page => universal_page
Home Page => home_page
How do I check for content type ...