All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

Contextual filter from Taxonomy inside a paragraph

I have content-type (Destination) with a paragraph added as a component. This paragraph has a referenced taxonomy vocabulary (location). I want to display a list of nodes from another content-type (...
0 votes
0 answers
8 views

Display deltas in multivalued field labels via token in a webform

Is it possible to display field deltas in multivalued fields of webforms? Single <input> Multiple value Label 1 <-----here <input> Label 2 <input> ... Label N <...
  • 77
-2 votes
0 answers
21 views

Entity Print dompdf error

I am working with the "webform" module and have installed the "entity print" module with the "Webform Entity Print (PDF)" and "Webform Entity Print (PDF) Attachment&...
-3 votes
0 answers
46 views

Is there a way to import an image from url into an image field? [closed]

When publishing a node, i have an image field, that serves as a cover/illustration image for the node. In some cases i use images found online as these cover/illustration images, the way I do this is ...
0 votes
1 answer
42 views

Ajax validation of file upload in Commerce Product with product attributes

I am building a shop with Drupal Commerce right now. I have a product that uses an Order item type, which supports a file upload. The same product also has some product attributes that load the ...
0 votes
0 answers
31 views

Wrong email content is sent during user activation

When admin blocks or unblocks (activates) a user account a different email body is sent to the user from that which exists in admin/config/people/accounts page. The site is multilingual (two languages)...
1 vote
0 answers
41 views

Cannot enable file-mapping option in a composer.json to prevent custom edits to be overridden in .htaccess

I have a "drupal/legacy-project" Drupal 9 project (it was packed inside bought custom drupal theme and later updated to latest drupal 9 version) and I need some custom edits in my root ....
  • 11
0 votes
1 answer
24 views

Hide images for articles that are older than two weeks [closed]

I have a news website built on Drupal 7. I need to hide all images on this website's articles, when the articles are older than two weeks. I believe a solution would a PHP line to add to the articles' ...
  • 1
0 votes
1 answer
22 views

how can I add contextual links to each of the items in my view?

I am creating a view in drupal and I need that each of the items of this view (are publications) have a contextual link to access more easily to edit this publication. I have tried adding {{...
  • 1
3 votes
1 answer
50 views

Entity level constraints - when and how should the validation be implemented?

I've created a custom constraint, and set it on an entity in the entity annotation: * @ContentEntityType( * id = "student", * label = @Translation("Student"), ... * ...
  • 15.3k
-2 votes
0 answers
30 views

Duplicate products in a view

after I switched from fields to products in the show section of the view, I get several duplicates of the same SKU. I used jquery distinct and product delta variation filter set to 0 to delete any ...
3 votes
2 answers
69 views

Where is it documented that fields included in the entity_keys are 'required' regardless of the required property value in the field definition?

I've created a custom entity. One of the fields I've added is an entity reference field that was created calling BaseFieldDefinition::setRequired(FALSE). When I installed my module and tried to add a ...
0 votes
0 answers
20 views

Overriding widget labels

I have an content type field called Directions that is an Entity reference revisions, my goal is to modify both the buttons label from paragraph to Directions and the above label that says paragraph ...
2 votes
0 answers
41 views

Get Drupal core search results via jsonapi

I am using the jsonapi module to get node content for specific bundles for a mobile app and i am familiar with the filter, include and sorting concepts of the jsonapi. Now i want to get search results ...
  • 131
0 votes
0 answers
16 views

View displaying content revision with a relation to a user field

I have a following use case for building a view in D9 that is causing me problems. Each user has a custom field that refers a taxonomy. Let's say it's a list of departments users belong to. Each user ...
  • 115
0 votes
0 answers
27 views

Files don't load after upgrade

I'm migrating a Drupal 7 site to a Drupal 9 site via Drupal Upgrade. After running my drush-migrate-upgrade command in Drush, the essential migration structure is there for me to then go to the UI, ...
0 votes
1 answer
47 views

How can I extend an existing View display style?

I'm using the views_summarize module, which adds a custom View display style. The display style is basically a Table view but it allows you to display a summary of a column in a row at the bottom of ...
0 votes
0 answers
12 views

How to get the Paragraph vales in Rules after saving a new node?

I have name and email fields in a Paragraph Type and would like to use these values to send the email. The following "Entity is of bundle" Conditions setting in Rules returns the other field ...
  • 847
0 votes
0 answers
9 views

Views Expose Filter List of URLs

I'm trying to display the list of urls in my view to show all of the urls listed. I have that part working in the view, i used the following code for the replacement patterns. <a href="{{ ...
-2 votes
1 answer
36 views

Custom Template for Comment links

I would like to have a custom template for links (edit, reply, deleted) for my custom Comment Type. (Drupal 9) Twig Debugging of course enable. I have tried to use hook_theme_suggestions_link_alter ...
  • 3
0 votes
1 answer
21 views

How can I show an "Add file" button? [duplicate]

I'm making a form that can update a node values. I managed to generate a file upload field which shows the already uploaded images, but there's no visible Add file button. When I add a new file, the ...
-2 votes
0 answers
17 views

Reverse entity reference query on media types

I have node type A that has 3 fields where field_1 and field_2 reference media type B and field 3 references media type C. node_type_a field_1 media_type_b field_2 media_type_b field_3 ...
0 votes
0 answers
34 views

How do I display the already uploaded images in a custom form?

I build a custom form to edit nodes, which have a multiple files field I show using the following code. $files = $event->field_bijlages; $fileIds = []; foreach($files as $file) { $fileIds[] = $...
-1 votes
0 answers
26 views

Ajax form stopped working - triggering_element is null on localhost

I have a custom webform, that worked fine until recently (also on localhost): class ConfirmDeliveryForm extends FormBase { // ... public function buildForm(array $form, FormStateInterface $...
  • 280
0 votes
0 answers
49 views

Data comparison to workflow state

I am using the workflow module paired with rules. The current issue I'm struggling with is getting the reaction rule condition set up properly to only send an email to users of role when the ...
1 vote
1 answer
73 views

Why do I get the development snapshot?

I am following the instructions given on Updating Drupal core via Composer for users using the drupal/core-recommended package. I have the following lines in the composer.json file. "minimum-...
  • 31
0 votes
1 answer
20 views

Programmatically set allowed role on new taxonomy term

i'm using the permissions_by_term module and I now want to programmatically create a term and set the Allowed role field value while doing this. I create the term using this, and I added a line to ...
  • 926
1 vote
1 answer
46 views

Config sync & Field default value for entity reference fields

Given two environments dev & live, how do you properly transfer field default values for entity reference fields when deploying with Drush (cex & cim)? The default value is a UUID, which is ...
  • 5,036
0 votes
1 answer
27 views

Honeypot hidden field in webform template "webform--contact.html.twig"

Honeypot is active on my site (Drupal 9) for all forms. When I created the template file for the contact form "webform--contact.html.twig", I can't get the honeypot default hidden field &...
0 votes
1 answer
43 views

English translation shows up on German page

I have Drupal 9.4.5 site. I've been hunting a problem where translations in the wrong language show up for guest users, after each release. Default language: English Interface Language Detection: ...
0 votes
0 answers
10 views

Slideshow with Colorbox

In Drupal9 , I need to create a Slideshow along with Colorbox. Requirement: Display the slider/slideshow[one image at a time] in a block and on click of any slider image, it should be displayed in ...
  • 73
1 vote
1 answer
37 views

How to use a token that includes slashes with PathAuto?

I have a custom token that gets the path value from a JSON field. The JSON field stores the path like this (in the database, the slashes are escaped, but I'm showing an unescaped example here): { &...
-1 votes
1 answer
30 views

Create Vocabularies and Terms with the JSON:API module

I am using the JSON:API module. I need to create vocabularies and terms through the endpoint, but it is only accepting GET requests. Am I using the wrong route or endpoint?
1 vote
1 answer
64 views

How can I override the base URL as sent in one-time login links when decoupled front-end domains differ from the backend domain?

For a decoupled project I'm using a passwordless authentication flow, which means I'm using the /user/password?_format=json endpoint to send one-time-login links to users. In the frontend I've created ...
  • 11
0 votes
0 answers
13 views

Reference a migrated media entity correctly from yaml field

I am importing D6 to D9. I imported the files, and then I created the media entities via a 2nd migration. Now I am attempting to use one of the media files on a Profile. I currently have this in my ...
-3 votes
1 answer
51 views

composer drupal-core update fail because of zetacomponents/mail patch

I try to update a Drupalmachine on 9.4.5 site via composer 2.4.1. ~/bin/composer.phar update drupal/core "drupal/core-*" --with-all-dependencies (see below for composer.json) first try i can ...
  • 3
0 votes
1 answer
51 views

Deleting the original content doesn't delete translated one [closed]

When I delete original content, the translated one isn't delete and I just can't delete it ("remove" button doesn't appears). These are the steps to reproduce the issue. Install the ...
0 votes
0 answers
40 views

Import config on Drush install with config in non-standard directory

I've got a site set up with its config sync in a directory outside of web root; specifically ../config/sync (relative to the Drupal root). I have that path set for $settings['config_sync_directory'] ...
-4 votes
0 answers
33 views

How can I limit the search level in on taxonomy?

​ I created taxonomy terms and subterms. My nodes can be associated with only one term. Here is my taxonomy: I created a view block that displays sticky nodes. I added to my view the contextual ...
0 votes
0 answers
17 views

Pickup address doesn't show extra options

I'm using the Commerce Pickup module. I've added 2 pickup profiles (just like Drupal Commerce Pickup module 8.x / 9.x shows), but when I try to add it to my shipping method as Customer > Pickup ...
  • 13
0 votes
0 answers
21 views

Registration e-mail body translate doesn’t work

Admin page: /admin/config/people/accounts Tab: Welcome (no approval required) The translation of the subject of the e-mail works perfectly. However, the translation of the body of the email does not ...
1 vote
2 answers
43 views

Can't uninstall default search module because the Commerce Base module is required

I want to use Search API + Solr on my Drupal (& Drupal commerce) site. The tutorials recommend to uninstall the core Search module. However, I can't: the UI at page /admin/modules has Search ...
  • 28
2 votes
1 answer
58 views

CKEditor 4 style to add a class to a paragraph instead of replacing existing classes

Certain rich text contains the following HTML: <p class="indent">paragraph text</p> in Text formats and editors for CKEditor, I have added the following line to the styles ...
-5 votes
0 answers
28 views

How can I uninstall Commerce Payment (and all of Commerce)?

Drupal 9.4.3 Commerce Payment 8.x-2.31 I have deleted all orders, payments, etc. I get hung up when I try to delete Commerce Payment. PHP ERROR Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[...
  • 1
1 vote
0 answers
100 views

How do I solve "RouteNotFoundException: Route "jsonapi.settings" does not exist" which occurs while installing the REST UI module? [closed]

When I am trying to install or uninstall a module the below error shows up. The same error is displayed when I go to webservices (Home > Admin > Configuration > Web Services). The website ...
1 vote
1 answer
41 views

Commerce pick up vs shipping

I've read the documentation, but it doesn't seem to be complete just yet. I'm using Drupal 9.4 and Commerce Core 8.x-2.31 with a few extra Commerce modules. I've got a basic question (I think?). How ...
  • 13
1 vote
1 answer
25 views

Custom theme settings not saving

I am in Drupal 9.3 and I am working to add 5 new fields to the theme settings. I am following all the instructions I can find. I have tried clearing caches a few times. I can see the fields. But ...
  • 1,290
0 votes
0 answers
30 views

How do I send a notification email as soon as file is uploaded from the node add/edit form?

I have a media video content type that has a video file field (takes a file), name, and air date. The video files are saved on amazon S3 not locally. I want to monitor the files that are uploaded and ...
  • 251
4 votes
1 answer
95 views

How do I set the display suite default region for newly created fields?

What needs to be done: Newly created fields in any content type should go to the hidden region of the DS Layout. Short background: In our project we use the Display Suite module, and we have the ...
  • 1,751
0 votes
1 answer
18 views

managed_file not initialised after form ajax

I'm having issues with a managed_form field not beeing initialised after it is introduced via a ajaxcallback in a custom checkout Pane: /** * Provides a custom message pane. * * @...
  • 280

15 30 50 per page