All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
6 views

How to filter autocomplete on a dependent field?

Goal - How to filter autocomplete based on a related field? In this domain, an organisation is selected and then the autocomplete should only allow items created by that organisation to be selected. ...
0
votes
0answers
4 views

Geofield -> Filter points inside a polygon

I have two content types. Each of them has a Geofield field: A -> It has a Geofield of type polygon B -> It has a Geofield of type point I would like to build a view to show all B nodes that are ...
0
votes
0answers
13 views

How to limit the addition of a single node in a Group?

On my Drupal 9 site and Group module. I created a type of group "Blog". I want that in a group, only one node of type "Article" can be added. How to limit the addition of a single ...
-2
votes
0answers
10 views

I need to show submitted form fields for approval [closed]

I need to show all submitted form fields to a user and then the user will approve or reject the form. On approval, the registered user will get an email of approval or rejection accordingly. I need to ...
-3
votes
0answers
26 views

There are no messages on the page admin/reports/status after update 9 [closed]

I have updated the drupal core to version 9.2.9 via the composer. And there are empty messages on the admin/reports/status page.
0
votes
0answers
21 views

How to replace the "Views" pages of taxonomy terms?

I have a site with Drupal 9. I have created a taxonomy and I want to personalize the terms pages. In Drupal there is a "Views" for the taxonomic terms pages created by Drupal. The problem is,...
1
vote
1answer
32 views

How to display the parent taxonomy term of the "Tags" field?

On my Drupal 9 site, I created taxonomy terms in the "tags" vocabulary (the vocabulary and the default field of the "article" content type) : When I create a node, I select a ...
1
vote
2answers
70 views

Confirmation message on comment submission

When a comment is submitted, no confirmation message is shown and I would like to achieve this. I want to show the following message. Your comment has been added for review and approval. I tried ...
0
votes
0answers
11 views

How can I show tax per line item at checkout?

In D7, there was a module named 'Commerce price by components' which allowed us to display a price inclusive or exclusive of tax. I would like to show a detailed tax breakdown at checkout as most of ...
0
votes
0answers
35 views

How to open a field value dynamically in a modal dialog on node view?

I have a content type with a field, which contains HTML data (a short article). When viewing a node, I want to have a link (or button, doesn't matter), which will open a modal dialog with the value of ...
0
votes
0answers
30 views

Entity reference field hidden widget or edit disabled on custom form

I have a custom node creation form I am rendering within a views preprocess hook. In that form I have two entity reference fields. I am setting the [#value] and [#default_value] of those reference ...
2
votes
1answer
36 views

Add a custom variable to an existing block

Is there a way to alter the render array of an existing block? I want to do it for a commerce block (cart block) but the question remains for any core or contrib module block. When a block uses a ...
-2
votes
0answers
27 views

Why is javscript not used more often to add placeholders for forms? [closed]

Recently i added placeholder to my login form using javascript placeholder function and it was pretty easy. but in drupal that method is not considered as most preferable though being an easy way to ...
0
votes
0answers
17 views

How to show progress bar twice on one request (with Batch API)

I have a custom form which handles two different process after submission, let's say Process 1: removing all article nodes Process 2: importing article nodes from csv. The problem is that each ...
2
votes
1answer
79 views

What is the stable9 theme? When should I use it instead of stable?

https://www.drupal.org/node/3066038 Has this cryptic statement: However, defaulting to base theme: stable prevents automatic updates to the next major version of Drupal, since each major version may ...
-2
votes
0answers
21 views

Web form + Recaptcha for China users [closed]

Anyone who works with web form with Recaptcha module, had trouble related China users, regarding filling and submitting forms. Notes: The website I'm working with already uses the option global ...
1
vote
2answers
80 views

How to add class to multiple view-blocks using twig?

I have four blocks to a view. I want to add class 'fancy-body' to all four blocks. How can I add that. view_id : categories display_id's of blocks : block_1, block_2, block_3, block_4 I know, I can ...
0
votes
0answers
25 views

Integrate SMTP and recaptcha modules with key module

I am not a module developer. And I am trying to make key module working with recaptcha and SMTP modules as I see in the video tutorial. I have already setup modules and configured keys by adding files ...
-1
votes
0answers
18 views

Tokens not working for correct format on webform submissions email

I need to send an email containing the email and the cv url from the form values, as raw values. I am using webform 6.1. The form contains the fields: field "email" : type : email, ...
-2
votes
0answers
28 views

Variations do not work at all, no documentation how to set it up properly [closed]

It looks like whole commerce core is set up only for 1 variation. Anything I do, I can not set it up properly to make it take at least 2 variations. Add to cart buttons only add first variations in ...
0
votes
0answers
10 views

Filter views by field value equals another field of curent node

D9.3. All fields are not referenced, they are just simple integers. All data was pulled from a huge external API and it was not possible to create all references. Just for ease of understanding, ...
-1
votes
0answers
18 views

How to map date field that has multiple components to a custom migrator?

I'm sure the issue is in my migration YML file. I'm trying to populate a date field that has a start date, end date, time zone and repeat rule components. The date field's name is field_event_date and ...
-1
votes
0answers
16 views

Migrating files from an S3 bucket to another S3 bucket (Drupal's file system)

I have to migrate articles from some external source to Drupal 9 articles (nodes). Articles also have images and for testing I'm migrating images from local file system into Drupal and that works well....
-1
votes
0answers
25 views

Why are news not filtered by date?

Task: I need to filter news by category and news creation date. Filtering by category was easily implemented: In Edit View -> FILTER CRITERIA -> Content: Has taxonomy term But news is not ...
0
votes
0answers
17 views

How do I dynamically add filters?

I have a view_block with the following filters, I want to change the product tag, Release tag, Document type values dynamically based on url. if the url is, example.com/mars/21.43.00/ProductGuide, ...
0
votes
1answer
31 views

Altering custom template from code

How can I programmatically remove blocks and other elements from a single custom template ? In my custom modle I have defined a route to a controller which then loads a template which is also ...
-2
votes
0answers
27 views

When I deleted content type fields

When I tried to delete a field in a content type, I got this error. Now I am confused that whether my content type's field is deleted or not. I have to delete a few more fields. If anyone can make me ...
1
vote
1answer
22 views

Make Title field "not required" or workaround how to prefill and hide it (drupal 9.2.8)

On my site (drupal 9.2.8) users add content and there is no need to put any information to 'Title' field. I was trying to make this field not required via form_alter in custom module but it did not ...
-4
votes
2answers
46 views

Is by design, Drupal headless?

If I understood correctly, "decoupling" a content management system means separating backend from frontend (having two "modules" for each under the same "program"). If I ...
-3
votes
0answers
15 views

Is there any module to provide integration with stripe payment gateway with checkout button and payment should be done on stripe checkout page [closed]

I want a module to provide integration with stripe payment gateway with the checkout button and payment should be done on stripe checkout page. I tried commerce_stripe module but it provide on-site ...
1
vote
0answers
23 views

Can't save value of custom datetime field

I'm reaching out because I just can't find out why my custom datetime field isn't saving its value after I submit. Context: I've created a field containing two datetime fields. I will use it to add or ...
0
votes
0answers
13 views

Can't upgrade Webform from 5.x to 6.x: "Entities exist of type Webform submission and Webform"

I recently updated my site from Drupal 8.9.19 to 9.2.8, and from Webform 8.x-5.28 to 6.1.0. I'm now trying to deploy this update to my test server, and I'm getting the following error when running ...
0
votes
1answer
22 views

Is it possible to see which modules grants access rights?

Working on a Drupal 9 website the module Permissions by term gives an unexpected behaviour. Trying to find the problem I got stuck. I think there might be another module overwriting the permissions. ...
0
votes
1answer
17 views

Migrating an array of values into multiple entities

I'm using migrate/migrate_plus modules to import CSV files and generate entities. One of the columns in the CSV can contain multiple values like 1|2|3, which I'm converting to an array using: ...
-1
votes
0answers
23 views

How to Customize Table of contents block of book module?

This is what I have in table of contents, In the above image, "table of contents" is a link to one of the book pages. I want its body (content) displayed instead. What I should add in core/...
0
votes
0answers
24 views

Load view form with ajax missing ajax functionality

When clicking an element I get a form which is generated by a view (using https://www.drupal.org/project/editablefields module). The problem is that the ajax functionality of the form is lost (no ajax-...
0
votes
1answer
49 views

Drupal::messenger() not working in shutdown function

Some time I need to use a shutdown function. Here is a stupid example: ... drupal_register_shutdown_function('display_message'); ... function display_message() { Drupal::messenger()->addMessage('...
0
votes
0answers
21 views

How to add contextual filter?

I am working with books in drupal 8. I want to display a specific page("table of contenets") on the sidebar whenever any page of that book is accessed. "table of contents" is a ...
0
votes
1answer
31 views

How get the referenced entity inside a field link?

I'm on D9. I've a paragraph with a Link field. I need to get the referenced entity programmatically. What I've managed so far is: $nid = NULL; $field_link = $paragraph->get('...
0
votes
1answer
45 views

Hide and unhide custom block programatically drupal 9

Hello I have created a module to display a block. I would like to set the block visibity to visible and hidden in the homepage based on a condition. like this: edit: //fetch status from database then ...
0
votes
1answer
34 views

Time spent with custom module

Can anyone help me with this, I want to activate time spent module on my custom form module, and store the time spent on a field on my form. I think that I could do it on the file timespent.module ...
-1
votes
2answers
28 views

How to add view filter programmatically using hook_views_pre_view()

I want to add a simple filter to an existing view in Drupal 9. It appears that I can achieve this with hook_views_pre_view(). In every example I can find, including all the "Similar questions&...
0
votes
1answer
44 views

Custom block plugin: Give access to edit form

I am creating a custom block plugin with custom configuration options (blockForm()). I would like to allow content editors to edit the configuration of this block, without giving them "administer ...
0
votes
0answers
12 views

Views: count flaggings per entity-referenced node

I have a flag called Collect. (Flag is individual, and enabled on multiple content types.) The flag has an entity reference field to a content type called Bucket. When users flag nodes, they go to a ...
0
votes
0answers
22 views

Provide menu link when creating node programmatically and append it to parent menu link

I am creating a Node programatically: Node::create([ 'title' => "Some name", 'type' => "people", 'body' => $params['body'], 'field_people_degree' => $params['...
0
votes
0answers
14 views

Link user to a LDAP user

I have the LDAP authentication module installed, and have a user that is not able to sign in using LDAP. In the database I can see that there is no DN string for this user. I have got the DN string ...
0
votes
1answer
21 views

Create solr_core for search_api_solr 4.x with docker solr 8

I used to create my solr instance for drupal like this: docker run -v $PWD/solrconf:/asdentcore -e SOLR_JAVA_MEM="-Xms2G -Xmx2G" --restart unless-stopped -p 8984:8983 -t --name ...
1
vote
1answer
33 views

How to validate a paragraph field?

I have a paragraph type with 2 fields: year and quarter I have a content type with a paragraph field (field_year_and_quarter) targeting ONLY this paragraph type I am trying to create a constraint to ...
0
votes
0answers
22 views

How to get remote post handler returned response at module file?

I want to get remote post handler returned response inside hook_webform_handler_invoke_post_save_alter. Please help me. function hook_webform_handler_invoke_post_save_alter(\Drupal\webform\Plugin\...
1
vote
0answers
26 views

How do I get the selected image style from a referenced media field?

I created a custom block with an entity reference to a media field (field_background_image). In the display settings I have chosen 'Thumbnail' as format and selected a custom image style 'background'. ...

15 30 50 per page
1
2 3 4 5
1705