All Questions

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

The email doesn't have the DKIM signature it would get from mail()

My web host (HostGator shared server) normally signs outbound emails with DKIM. When I send emails from Drupal 7.69 (and Webform 7.x-4.22 for compatibility with CiviCRM), however, there's no DKIM. ...
0
votes
1answer
73 views

hook_views_post_execute() don't work on AJAX View with exposed filters after 1st refresh

I have a View which returns 5 entities of the same type. AJAX - enabled, filters and exposed filters, all working fine. I need to add a new result, a user - defined entity, at the top of the View ...
0
votes
0answers
17 views

$form_state=>setErrorByName/setError on fieldset/container/etc

I have written a custom validation handler for webform that compares two fields. If the fields are in a container/fieldset/etc., I would like to set the error on the container instead of on the ...
0
votes
1answer
17 views

Token Filter module to work on Menu URL and Title

menu_token module is working fine to achieve the purpose. Does the module token_filter has this functionality? I can use tokens in wysiwyg using token_filter but cannot make it working for menu title ...
-1
votes
0answers
7 views

Ubercart tip/Donation in the cart

I would like to create a field in the cart page to add a donation or a tip. Im using Ubercart. Is there a module or a idea to make it possibe.
0
votes
0answers
29 views

User register with OTP via email (verfification code)

I'm using Drupal 8 and I have the following requirement: Once a user register, before logging in, they need to input a one time verification code received via email and NOT SMS. I've used the ...
0
votes
0answers
25 views

getUrlObject() returning empty proto object

I'm trying to follow this post to turn my menu tree into an array I can more easily work with. When I run my code and look at $filteredArray I get: title: *Name here* url_obj: {} has_children: true ...
1
vote
0answers
18 views

How to delete content entity type programmatically on uninstall?

I am trying to delete a configuration from a module in hook_uninstall. My module creates a content type bundle which has to be deleted. I tried to use an approach described here: How to delete a ...
0
votes
0answers
11 views

Moved Site Files and Set Up Domain/Apache, Can't Access Login Page

I had a Drupal 8.4 site working fine on my Digital Ocean server, accessed at http://serveripaddress/sitename/ - the site was in maintenance mode. I then set up my domain name on Google Domains, ...
0
votes
0answers
29 views

Paragraph type default value for old content

I created a new paragraph type called Ad and I want to set a default value for already existing articles. At the moment, I am obliged to go to edit each already existing article and to save it ...
0
votes
1answer
21 views

Drupal 8 Accessing Menu Tree in a Block's JS

How can I pass the menu into a block's javascript? I am trying to build a block for a custom mobile menu (client wants specific logic/animations/etc) and use that in Structure > Block layout > Main ...
-2
votes
0answers
16 views

How to use uploaded pdf file name as a pdf title?

I am using Drupal 8. In a content type I added a file field with .pdf extension.When I am uploading a .pdf file sometimes its take automatic title from pdf, and sometime its use filename as a title.. ...
0
votes
0answers
10 views

Migrate update all nodes on the first import / track_changes don't work

i'm using migrate to create and update nodes from external sources (xml files). These xml files are stored inside a directory and are deleted and re-uploaded once a day (during night). In these files, ...
0
votes
1answer
26 views

Modify the display of one field by the value of another field

We have a content type with a date range element on our D8 site. I got a request to hide the display of the end date if the content editor decided so. From testing, the content editor can't delete ...
-2
votes
0answers
13 views

Contents are not accessbile after migration

I have migrated a site from 7.4.3 to 8.7.10. I see all contents are migrated. I can see the content on editor. However when I access the content from browser via /node/node_id or /url_alias it does ...
0
votes
1answer
38 views

Images with applied styles are not being displayed

I have checked every single solution on the internet with no avail. On the same server and using the same Drupal version 8.8.4, I have two completely separated sites. Site A is working as expected ...
0
votes
1answer
37 views

How can I set form values with Ajax?

I want to set the value of a textfield based upon the selection of a field above. You can choose a template and the textfield would have it as a value. This is the select field used to select the ...
0
votes
1answer
13 views

How can I render an image stocked in a custom module with an image style?

I'am learning Drupal 8, and I would like create a custom module who create a block to add share button. The link of this button should be an image who stocked in my custom module. I would like use an ...
-2
votes
0answers
16 views

Use same machine-name from a deleted role/field

I've a big problem and i've searched the Internet with no success. So, I'm trying to implement an Simple SAML Login in Drupal 8 and I must create roles with a unique machine-name that de Identity ...
0
votes
0answers
36 views
+50

How to sort product attribute values in “Add to cart” form

Given a commerce product with variations, how can I order the values within a variation attribute in the "Add to cart" form on the product page? Steps so far: In /admin/commerce/config/product-types/...
-1
votes
0answers
23 views

How to fetch data from database using EntityQuery Drupal 8? [duplicate]

I need help. I am working on group module. I have group type named as drupalcamps. I have field in group type named as "field select theme" and also it make table in database named as ...
0
votes
0answers
32 views

How to call rest api in Drupal8 After form submit

I created one internal api call as '/api/v1/user/promotional-emails' this api calls some external apis and we are updating data there. In postman api is working fine. Now i created a user form as '/...
0
votes
0answers
14 views

Custom regions are wrapped

I am using Bootstrap Barrio sub-theme in a Drupal 8 site. I want to add regions similar to the "featured_*" regions. The regions are added into the info.yml file regions: # ... origional regions ....
-2
votes
0answers
60 views

Why, the references to the entities do not disappear?

I have a site with Drupal 8.8.4 I created a type of paragraph with an "Entity reference" field which refers to the products and a "Date range" field : I created a type of store with "Entity ...
0
votes
1answer
22 views

Form Select not rendering as a dropdown

I'm building a form that contains a select but it's not rendering as a dropdown. It's rendering with a scrollbar and a dropdown down arrow $form['my_select'] = [ '#type' => 'select', '#...
0
votes
0answers
12 views

Translations page select all

On a node translations page, for example, /node/1/translations, there is a select all checkbox. Is there a need for this checkbox? I attached a screenshot so you can see what I'm seeing. I looked at ...
0
votes
1answer
27 views

What Commcerce event is fired when a payment is made?

There seem to be a few bugs in Commerce (8.x-2.17) related to admins making payments against a Cart. I am trying to fix some of these in my own custom module (rather than wait for people to agree ...
0
votes
1answer
16 views

Trying to list all articles where category field is empty

I have drupal 7 site and I'm trying to listing all articles (with title) and where category field is empty (taxonomy). I'm running this code in my page with ->isNull and without, but not any results. ...
0
votes
2answers
30 views

Given a taxonomy term id, how do we get the value of other fields; specifically the machine_id?

A good example of getting the children is posted How to get fields... I need the machine_id of the parent (or target) Code below fetches the name; $product_name_id = $product_name_reference->...
0
votes
0answers
18 views

Make custom POST REST Resource available on OpenApi

Body section in Custom Rest Post Resource is not shown I've created a custom resource with drupal generate:plugin:rest:resource and the result is <?php namespace Drupal\baxter_rest\Plugin\rest\...
-1
votes
0answers
40 views

Composer behaves differently at home and on hosting service

One of my sites does not update properly with composer. I manually put in the new 8.8.4 core into web and then do: [~/www]# rm -rf vendor composer.lock [~/www]# composer update --no-dev --with-...
0
votes
0answers
14 views

Confilct with 2 custom authentication providers for REST

I need a custom authentication provider using JWT library for authenticate some REST, but in this Drupal other people using other custom authentication similar to my provider. The problem: If i check ...
5
votes
1answer
76 views

Command to install Drupal 9 with Composer

The latest version of Drupal 8 can be installed via Composer with the following command: composer create-project drupal/recommended-project mynewproject What is the equivalent command to install the ...
0
votes
1answer
36 views

How do I add the “onload” attribute to a script tag?

I need to add the onload event in jquery script tag as advagg does. I have done a bit of research, and I found that they are actually invoking hook_element_info_alter() and thereby add their ...
0
votes
1answer
22 views

How to add password reset link to user page?

Is there an easy way to add a password reset button to the user page in drupal 8? For user management I need the admin to be able to send password recovery link to users AFTER the user account is ...
0
votes
0answers
10 views

Are there any solutions that integrates custom mysql datetime field with views?

I created my own table with a mysql datetime field via hook_schema. The code that defined the field is here 'timestamp' => [ 'description' => 'The timestamp value when the recipient ...
0
votes
0answers
11 views

In product displayed the default variation type, but product type referenced to custom variation type

I created several product types with their own variation type for each. But always used default variations. For example Product type Matrress Variation type Feild list is empty for this variation ...
0
votes
1answer
18 views

Why do all product display nodes with same referenced product (SKU) appear in 1 order view

Each time an order is added to cart, the admin/commerce/orders/11/view, for example, shows all product display nodes ever created on the site for that SKU. I suspect that this is not the normal ...
1
vote
0answers
23 views

How to reference a submodule in composer.json file?

I just learned now that you should not include composer.json files in submodules. But can I have a reference to a submodule as a dependency? Imagine I have a module named AAA with a submodule named ...
0
votes
1answer
26 views

Link doesn't appear in configuration

I'm a Drupal 8 newbie writing my first module. I have a functioning yet basic module to learn from. What I'm working on now is for it to get a value from a configuration page. If I go directly to the ...
0
votes
0answers
28 views

How can I merge a development site with a production one on an earlier core version?

I work for a small company that currently has a Drupal 6 site setup and working well on a live Azure server. However, we need to migrate to D8 (should have done it years ago!) and are wondering how to ...
1
vote
1answer
32 views

Is it possible to run 2 different sites in Acquia Dev Desktop on the same computer?

I'm running Acquia Dev Desktop and I'm wondering if it's possible to clone 2 different sites with different Drupal versions. I tried cloning both sites, but when I cloned the second one and tried to ...
0
votes
0answers
21 views

Pathauto generating odd results

I attempted to create a pattern using Drupal Commerce 2 categories and product title. [commerce_product:field_categories:1]/products/[commerce_product:title] When I generate the url alias I get ...
2
votes
1answer
43 views

What is the difference between renderPlain and renderRoot?

I added a login form to a node with following code : function my_theme_preprocess_node(&$variables) { $node = $variables['node']; $variables['login_form'] = FALSE; $variables['username'] = ...
2
votes
1answer
57 views

Understanding behaviors

I created a custom theme (a sub-theme of Radix base theme). I am loading a custom Javascript file (radix_sub.script.js) using the module libraries.yaml file like below: style: version: VERSION ...
-1
votes
1answer
66 views

XML parser selector skips mixed content in migration

I am trying to migrate and map the source fields of an external rss/xml file into Drupal. I have built a custom module: In config/install folder I have my yml file modules/custom/import_rss/config/...
0
votes
1answer
54 views
+50

How to limit form submission per user per day and week?

The goal is very straightforward. I need a form to limit each user to 1 submission per day and 3 per week. What I found: Webform: The "Form settings" in webform has the "Per user submission limit" ...
-1
votes
0answers
14 views

Entities Reference Feeds shows An AJAX HTTP error occurred

I am using drupal: 7.59 feeds: 7.x-2.0-beta4 and Entity Reference feeds 7.x-1.0-beta3. I'm trying to import a csv into my content type and one of the fields of the content type is an entity reference....
0
votes
1answer
20 views

Using variation values in a template file

I am building a site that uses Drupal Commerce 2 and I am attempting to build out the product details template. Our product has a variation (field_accessories) which is an entity reference to another ...
0
votes
0answers
22 views

How to trigger a rule whenever users update their picture

Using Drupal 7 and the Rules module I need to trigger a rule whenever users update their user-picture. I tried using the event "After updating an existing user account" which does trigger the rule, ...

15 30 50 per page