Questions tagged [9]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Drupal commerce allowing customers to decide the price, for dontations

There are modules for providing a donation field for Drupal 7. However, there doesn't appear to be a way to do this in Drupal 8/9. Can anybody suggest a way to allow users/customers to choose the ...
0
votes
0answers
23 views

How to prevent block from being loaded via Big Pipe (Drupal 9)

I have a view block, nothing crazy, just a couple fields. I want to present it as a carousel. Everything worked fine, until suddenly Drupal decided to start loading the block asynchronously with Big ...
0
votes
0answers
9 views

How can I remove the configuration side panel?

I have two drupal websites (running on Drupal 9.2.10). Both of them use modules: Layout builder Layout Builder Asymmetric Translation Both websites have same configuration (and I don't do any theme ...
0
votes
0answers
20 views

How do I use the proximity filter in context filters?

This question is in addition to the following : How do I display nodes in a map block and in the page content, with shared filters? I have a view with a page and a block. The page displays the content ...
0
votes
0answers
22 views

Installing the dependencies of local modules without composer merge plugin

Currently I have a composer-based Drupal project with both third-party and custom modules. Third-party modules are managed by composer without any issues. But I would like my custom modules to declare ...
0
votes
0answers
13 views

How can I use CloudFront together Cloudflare?

Cloudflare is used on the Drupal 9 site. I should add CloudFront functional to the site. I set CloudFront on AWS. When I enable CloudFront, all images of the site got the CloudFront URL as necessary. ...
0
votes
0answers
12 views

Nested views ajax pagination

I am using Drupal 9 and views_field_view to embed a "child" view within a "parent" view. Because there are multiple rows in the parent view, I end up with multiple of the same &...
0
votes
0answers
20 views

How to correctly add a slideshow to Content type using a module paragraphs?

I created a Content type - News. Then using modules View, Slick Carousel, Slick View I displayed my news in a block as a slideshow But now I need to add a slideshow to a paragraph and display it on ...
-4
votes
0answers
20 views

How can I use pagination in custom query? [closed]

I have a custom query SELECT *, row_number() over (order by nid desc) FROM `node_field_data` And I need to add pagination on query results.
0
votes
1answer
44 views

Run an update hook after specific configuration has been imported?

I am introducing new configuration to an entity in Drupal that adds a few new boolean fields. The problem is, even though I set the default value as TRUE in the UI, this is only for new entities. ...
-2
votes
0answers
16 views

How do I create a node by consuming the Eventbrite API? [closed]

I am creating a D9 module to create nodes using the REST API and the Eventbrite API. Can anyone help me with achieving this task?
-1
votes
0answers
28 views

How to display the data displayed on the page in the block that will be placed in the header region?

I made a custom module that does this: When a user writes in the url the city of London: http://drupalsite/web/weather/London Website api.openweathermap.org provides data using API and user gets the ...
0
votes
0answers
34 views

What code should be added to the controller to display the message "city not found" instead of errors? [closed]

I made a custom module that does this: When a user writes in the url the city of London: http://localhost/drupal/web/weather/London Website api.openweathermap.org provides data using API and user ...
0
votes
0answers
12 views

Over-ride entity delete button permission

created a Form View mode and some custom permissions (pre node, based on a user list field in the node). I want a user with that permission to be able to delete the node as well, and have added a ...
-2
votes
0answers
22 views

Dates approach for a local cultural events site [closed]

I know I'm not the first not will be the last one to try to deploy an events guide using Drupal. I had a basic one myself some 10 years ago. Starting now from scratch with Drupal 9 I've met with the ...
0
votes
1answer
69 views

How do I display nodes in a map block and in the page content, with shared filters?

I am using the Olivero theme on my Drupal 9 site and building a map with the Geolocation module. I want to create a Views to display these two displays of the same nodes : one display which is a map (...
-2
votes
0answers
21 views

I am unable to get values in templates [closed]

I have mapped the fields of a content type (a webform) to node using the Webform content creator module. I am not getting those mapped fields in the template. All I am getting are previously mapped ...
0
votes
0answers
18 views

How to let a boolean field on NULL if untouched?

Steps to reproduce my issue : 1- Add a boolean field to Article content type, not required, without touching default value 2- Edit an Article content without touching the boolean field. 3- Save the ...
0
votes
1answer
12 views

How to setup facets on a searchapi view to display inactive items even after selecting options? [closed]

I would like to see the list of available options and the counts in the search and have them all remain visible even after I select an option. For example in a list of links for a content type filter ...
0
votes
0answers
39 views

Taming the Drupal 9 toolbar [closed]

Background / Context I am new to D9, having skipped D8 but knowing D7 very well. In D7, the black admin menu bar along the top of the screen (admin_menu, adminimal_admin_menu) is very useful, ...
0
votes
0answers
22 views

How do I pass a variable to a views-view-fields.html.twig template file programmatically?

I would like to pass a variable (Drupal 9) to a 'views-view-fields--view.html.twig' template file so that in the template file itself I can test whether the variable is defined. I tried using the ...
0
votes
0answers
24 views

Strange behaviour of regions displays in D9 Bootstrap theme

I'm working on a site based on Drupal 9 and Bootstrap 5. I can normally create new regions and call them in the front.html.twig template, so that they are correctly displayed and rendered in the block-...
1
vote
0answers
32 views

Search API + Facets: Overwrite facet output and conditionally alter query condition based on active filter

I have a date field on hundreds of nodes indexed. I created a facet for the date field but it displays all dates available (ew). Instead, we'd like a filter for "Available Now" nodes and &...
0
votes
0answers
36 views

How do I add the news that I created earlier to the slideshow using the Paragraphs module?

I created Content type - News. And added ten news. Using the View module, I displayed them on the /news page. I need to make a slideshow with 3 selected news on the frontpage of the site using the ...
1
vote
1answer
12 views

Entity reference auto complete field is missing value on ajax callback

I have an entity reference field on my content type using the autocomplete widget. I'm adding an ajax callback to that field using this in a form alter: $form['field_er']['widget'][0]['target_id']['#...
0
votes
0answers
25 views

Altering menu machine-name

A website I'm inherited somehow has a menu which has an underscore in it's machine name. In my attempt to alter that machine name, I found this post and created the following update function: function ...
0
votes
0answers
64 views

Drush Config import not working after Site-install Standard. There were errors validating the config synchronization

I am Upgrading Drupal 8.9 to Drupal 9.2 and it's installed but when am I trying run -y config-import then getting error [error] Drupal\Core\Config\ConfigImporterException: There were errors ...
0
votes
1answer
11 views

Automatically import fontyourface fonts

Is is possible to automatically import selected fontyourface fonts via config? Ideally, this would be just the fonts I've selected, not all from the source API. I'm in the middle of a D7 -> D9 ...
0
votes
0answers
8 views

Dynamic attributes on node with Solr facet search

I have multiple items which can be grouped together in a single way. Within this group, the items have the same possible attributes, with different values. But with another group, it may or may not ...
0
votes
1answer
28 views

Site stuck in 'headers have already been sent' login loop after D9 upgrade

Suggestions for debugging a site which is now stuck in a "headers have already been sent" loop after successful login (redirect back to login form)? This is a production server for a site ...
0
votes
0answers
24 views

Entity reference field dependant on other entity reference field

Drupal 9. I have a content type with two entity reference fields. The first entity reference field references group entities provided by the group module. The second entity reference field references ...
0
votes
1answer
74 views
+50

GraphQL query to validate User Login

I'm working on the Drupal decoupled project, where the client is VueJs and the backend is Drupal 9. I'm using Drupal's contrib module GraphQL 8.x-3.1 for the interaction between client and server. I'm ...
0
votes
1answer
47 views

How to prevend duplicates of content in a view?

On a multilingual drupal website (version 9.2.10) A block duplicates content on the landing page when 2 of more languages are enabled. The block shows random published content for a custom content ...
1
vote
1answer
26 views

Custom Entity "changed" field is unknown

I'm having a problem I really don't know how to solve, and need your knowledge. I have a custom entity that someone created, and forgot to add the "changed" field. So the objective is to add ...
1
vote
1answer
36 views

How to check if path alias exists

In Drupal 8, my custom module includes the code if (\Drupal::service('path.alias_storage')->aliasExists($path, 'en')) { return true; } What should this look like in Drupal 9.2? Seems so simple,...
0
votes
0answers
15 views

How to get language prefix in URL for terms without translation?

I have a multilingual website with taxonomy vocabulary, which terms are not translatable (company names). But each term has translated meta tags and paths, depending on the selected site language. For ...
1
vote
1answer
129 views

How to hook on paragraph deletion?

I'm on D9 and I've a paragraph inside a content type node. I need to hook when the paragraph is deleted to do some custom logic and set up a queue. I've tried hook_entity_delete, hook_entity_predelete ...
0
votes
2answers
40 views

The sequence of actions upon cookie-authentication to Drupal site

There is a drupal 9 site that has a REST-endpoint that can be accessed for logged-in users (not for anonymous ones). And, it's necessary to make a GET request to the endpoint using cookie ...
0
votes
0answers
17 views

Migrating one field into multiple rows

I am trying to migrate html code into multiple paragraphs that need to be linked together somehow. My idea is to have them linked my ID that comes from the dataset, maybe using that ID as second ...
0
votes
1answer
16 views

How to use sql MAX() function in views plugin query

I am creating a custom views filter for a custom views field. The following SQL will accomplish the filter I seek: select nid, moderation_state, content_entity_id, MAX(content_entity_revision_id) ...
0
votes
1answer
39 views

specific submit handler to user form

I have a submit handler to the user form. It redirect the user to a specific page. use Symfony\Component\HttpFoundation\RedirectResponse as RedirectResponse; /** * @file * Primary module hooks for ...
0
votes
0answers
27 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 ...
0
votes
0answers
22 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
40 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
81 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
46 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
1answer
36 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
42 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
1answer
85 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 ...
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
2 3 4 5
14