All Questions

Filter by
Sorted by
Tagged with
-3
votes
0answers
19 views

Why do all of my submit buttons keep appearing even if they should be hidden by a condition? [closed]

I have a multistep webform, with on the final step, a couple of containers, made visible by some conditions derived from choices made in the previous steps. So far so good: these containers are being ...
-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
29 views

Using webform module without storing the submissions

On the youtube tutorial Emailing & handling submissions from jrockowitz, the main maintainer of the webform module, he said at 7:13 that webform can be used without storing the submissions. For ...
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 ...
-1
votes
0answers
25 views

Deleting webform submission straight after email being sent [duplicate]

I would need to delete the submission straight after an email has been sent ( configured in the /admin/structure/webform/manage/candidature/handlers ). My main concern is that i would need uploaded ...
-2
votes
1answer
24 views

Missing or invalid themes

I created 2 custom themes a while ago and I deleted them since I don't need them anymore. Although I deleted all the files, I am still getting this error. Missing or invalid themes The following ...
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
16 views

How to nest fieldsets?

My goal is rather simple, I need to group several fieldsets in a fieldset like in the image below : I tried with the following code : public function buildPaneForm(array $pane_form, ...
0
votes
0answers
13 views

Filtering the result set of entity_autocomplete

The following snippet of code is found in the 'nodeaccess' module. At the moment, the autocomplete is allowing you to search for any user in the db. What I would like to do is only return users that ...
0
votes
1answer
34 views

Webform block shows for anonymous user but not authenticated

I am using the webforms module (6.1.1) on a Drupal 8 site for a form that shows up in a block on my front page. If I am not logged in (go Incognito or InPrivate mode) the form displays and works. If I ...
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 ...
-2
votes
0answers
43 views

module to create UUID path aliases [closed]

Is there a module to create aliases to a node that look like the paths used for sharing access to images etc (eg in Google Drive) like: https://mydomain/dfgh41mdRHC_TQxT1mXMOZNvYXk0sf_xLZc1lG/view ...
-1
votes
0answers
28 views

where is the node edit tab?

In Drupal 7, each node page had some local task tabs for view, edit, etc. when logged in as admin. I realized I'm not seeing this on my Drupal 9 pages. I have a custom subtheme, based on d8w3css, ...
0
votes
0answers
13 views

Filter View of webform submissions by user

I'm using Drupal 9 and attempting to produce a list of submissions (event registrations) filtered by each user so the user can see a list of events they registered for. All other solutions I've found ...
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 ...
0
votes
1answer
17 views

Replace E-Mails in Webform 8 when dumping to test stage

We sanititze our dumps from production to test so that no newsletter subscriptions, form submissions or ohter things get into the test environement and bad things happen :D Is there a simple way to ...
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
1answer
46 views

Get raw SQL query from Drupal::entityTypeManager

How can I fetch the raw sql version of the following statement? $t = \Drupal::entityTypeManager() ->getStorage('taxonomy_term') ->loadByProperties(['name'...
0
votes
0answers
26 views

Recaptcha v2 module doesn't protect a custom forms

Recaptcha v2 as a standard has forms for protection: Comment, Contact Form, User Login (recommended for security), User Login Block (recommended for security), User Register (recommended for security)....
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
0answers
8 views

pager_find_page() is deprecated. Can anyone tell me what is the substitute? [closed]

I'm trying to use pager_find_page(), but it's deprecated. Can anyone tell me what is substitute is?
0
votes
0answers
12 views

Getting validation error webp image upload

I have added a image field to my "Blog" content type. In image field settings 'Allowed file extensions' section include webp format. When I upload webp format image gerring below validation ...
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
12 views

Unable to filter fields in Search API Solr index Query

I'm trying to run a Search API search programmatically on my solr index. The issue is that the query is quite expensive so I'm trying to reduce the cost by filtering for specific fields. In Solr I ...
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 ...
1
vote
0answers
72 views

Delete millions of unused Paragraphs and their data?

We have a site that after a few years has built up 10 million records in the paragraphs_item table. This is a result of lots of data migrations (where paragraphs are involved) and there are many ...
-1
votes
1answer
28 views

Read view field value in VBO action [closed]

I have a view grid that has custom actions to perform based on selected grid row. To read the view fields from the grid dpm-ed the below command: dpm($this->view->result); The above command ...
0
votes
1answer
75 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 ...
-1
votes
1answer
17 views

How to configure upload of webform document files to public folders?

When configuring the storage location of a webform document file,i am not proposed to changed it from private to public. That is problématic to expose that URI to a distant server.
0
votes
1answer
11 views

How do I omit webforms submission number (serial) from results?

We have webforms that use Webform Entity Print (PDF) Attachment. These PDFs have Submission number show up right after form's headline. How do I hide this number so it doesn't show up in the results?
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 ...
0
votes
0answers
6 views

Media Library: How can I pre-fill the caption when an image is inserted into a text area?

If I use Media Library to insert an image into a text area, the image's caption is empty and hidden. Instead I want the caption displayed by default, pre-filled with text in the format: [Image entity ...
0
votes
0answers
16 views

drupal view how can i filter results for certain node ids

i have created a view via the gui. I have tried to filter on the nodes i want, either with a normal filter and an or, and adding a few of them in a contextual filter. I face two issues: 1. i cannot ...
0
votes
1answer
15 views

Add extra item during the checkout in Commerce 2

Is there a way to add a checkbox during the checkout to have a special feature and then modify the total price of the order if checked? For example, imagine you want to have the products of the order ...
0
votes
0answers
11 views

Webform custom element layout twig

I am creating a custom webform element, im using the /modules/contrib/webform/webform_example_example, i installed the module and added the element to a form but now i want to customize the webform in ...
1
vote
0answers
18 views

Two step entity reference selection

I want to create a two step entity reference selection in Drupal 9. The structure so far: Content Type: Company --> Entity reference: Jobs (multiple) Content Type: Job --> Entity reference: ...
0
votes
0answers
14 views

Why is not printing the Table?

I have this code: $form["noah-search-container"]['actions'] = [ '#type' => 'button', '#value' => $this->t('Buscar'), '#ajax' => [ 'callback' => '::noahSearchQuery', ...
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
27 views

Drupal Headless CMS

I have a Drupal 9 website that uses SimpleSAMLPHP for SSO with MS ADFS. Now I want to convert this website to decoupled architecture and would like to create some pages in Angular and the rest of the ...
0
votes
0answers
19 views

Hiding submenu to certain roles - Drupal 8

I am having the below menu structure: I have setup the entire menu structure using Drupal UI and Menu block permissions. Right now the menu shows for all the roles: level1, level2 and level3. However ...
1
vote
1answer
22 views

Is it possible to create new node ID's when migrating content instead of using the existing one?

We're working on migrating a D7 site to D9 and will be creating new nodes (with new node ID's) before the site launches. The next time we sync the content from the D7 site to D9 the migration will ...
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
votes
1answer
9 views

Webform Table missing in Views

I have a webform created on our site we want to be able to show the user its submitted values and everything seems to be working but the table, I have downloaded webform views. Please help i'm not ...

15 30 50 per page