All Questions

0
votes
0answers
8 views

How to change payment method depending on product field

I´m running a D7 Commerce and I need to activate a payment method for some special products. On the Payment Rule conditions I need to check if the product included in the order has a specific value. ...
-2
votes
0answers
25 views

How do I use a views data with a paragraph? [on hold]

I have a content type with dynamic content block section. Each block section is managed by paragraph bundle. Let's explain using an example to make more clear- Content type name is Employee. A ...
-1
votes
0answers
24 views

Solr query alter

I am working with search_api_solr and facet module in drupal 8 but while solr search from my site I am getting url is like this http://siteurl.local/products-filter-solr?f[0]=t:951 but as per ...
1
vote
0answers
29 views

How do I remove unwanted hreflang links from page

I have a content page in English with Japanese and Chinese translations. Even when I unpublished the translation nodes, the page source code will display the hreflang attributes to the unpublished ...
-2
votes
0answers
21 views

Just installed drupal-7.65 and getting JIT compilation error [on hold]

Brand new to drupal and website building in general, just set up a local server and installed drupal 7.65. Before doing anything, I am getting a long list of errors whenever I navigate to a new page, ...
0
votes
1answer
28 views

Shared Field Name Between Entity Types?

I have always separated my field names by entity. e.g. field_paragraph_h2 or field_content_h2, but when you look at config, fields are designated by their entity type as well. field.field....
-1
votes
0answers
17 views

Cache and deadlock related database errors [on hold]

We have a module that performs fairly complex operations underneath the hood. Sometimes the processes exit with database related errors, since there are no exceptions thrown by Drupal core we can't ...
1
vote
1answer
15 views

Set max_execution_time for view?

I've got a view that generates a CSV report on user information. However, due to the size of the dataset it's causing the server to timeout. Is there some way that I can set the max_execution_time() ...
0
votes
1answer
65 views

Adding Constraint to Paragraph field

I have a Content Type with a field that references 6 different paragraph types. The field is set up to accept unlimited values. For one of the types I would like to have exactly four values added. ...
1
vote
1answer
27 views

Get a list of field variables for template code

For Drupal 7, how do I access (or generate) a list of all the field variables available for building a template (for a given content type)? Some context: I used to rely on the (now deprecated) ...
0
votes
1answer
10 views

Selecting the number of Records from Textbox

I am trying to built a text box where I can type in the number of records that I want to select. So if I type in "100" the first 100 records should be selected and then will assign it to user. How do ...
0
votes
0answers
67 views

composer won't update 8.6.13

I can't update Drupal 8 from 8.6.10 to 8.6.13 -- please help! composer.json -- partial "require": { "composer/installers": "^1.0.24", "wikimedia/composer-merge-plugin": "^1.4", ...
2
votes
1answer
27 views

How do I get the user avatar picture?

I am working on a custom Drupal 8 theme and I am trying to get the user avatar picture on a variable and output somewhere in the HTML. I have created this function to get the name & email of the ...
3
votes
2answers
66 views

Bidirectional entity relationships?

I am doing a migration right now and have a need to maintain how entities are related in a way that the core entity reference field does not seem to support. Lets say I have two content types, Foo ...
0
votes
1answer
28 views

Menu on the taxonomy term page

maybe the solution to my problem is quite simple but I can not find a way on the taxonomy term page to show a menu block! I use drupal 8 with bartik theme and have a menu based on taxonomic terms (...
0
votes
1answer
38 views

Show count in view grouping

I'm building a index view to use as search. I'm grouping the results by a term field and everything works fine. What I want to do is add a count after the group title to show how many results that ...
0
votes
0answers
11 views

Errors when the product price is not the same as default country

On Drupal commerce 2 (Drupal 8), the default country for the site is Canada. But I have multiple currencies enabled. When the price for a product is entered as US dollars, after completing the payment ...
4
votes
1answer
55 views

Host doesn't support nested folder structures for deployment. How do I adjust Composer?

So, I have to deploy a drupal 8 site to a host which doesn't provide functionality to specify an entry point for a Drupal site which is nested below the site root folder. How can I update the folder ...
0
votes
0answers
20 views

Quantity field and Custom text field is not displaying in add to cart form

My aim is to display two fields in Product page (Custom text and Quantity field). I have created a new custom text field. Finally, I have moved these two fields from hidden to visible mode in Add to ...
0
votes
0answers
14 views

why the value of 'total paid' field on a completed order gets doubled?

I am using commerce 2 on Drupal 8. I need to get the value of a customer has paid on a completed order. But strangely the 'total paid' value gets doubled, here is output of dsm($order): [total_price] ...
1
vote
0answers
26 views

Body, files, and paths problems

I was suggested so many times to migrate my old project from D6, so I finally decided to jump into this. And as it always happens with Drupal, things never work as expected at first attempt. The old ...
1
vote
1answer
29 views

Increase label max length

The default max length for all labels of all field types is 128. The DB can handle 255. So no schema change. How can I change the default max length to 250? I've seen this module https://www.drupal....
0
votes
0answers
30 views

Error messages not displaying with use-ajax-submit for existing content type form

I am using use-ajax-submit with custom submit handler, but it is not going inside submit handler when there is any validation error, and error messages are also not displaying on form element as well. ...
0
votes
0answers
33 views

How do I find the lost administrator login credentials?

How do I find the lost administrator login credentials? I have deployed locally an old Drupal 7 website and I can't find the administrator login credentials since Windows had crashed 3 years ago.
-2
votes
0answers
35 views

Change the taxonomy term name character length

I am trying to increase the character limit of the taxonomy name character limit. Tried a few methods which were found by searching in Google and failed to get the result.
0
votes
0answers
13 views

Creating menu tabs in a child page

I have a suite of modules that go together, and they are all ideally housed under one parent item on the 'management' menu. The normal pages of these modules are correctly being placed under this ...
0
votes
0answers
7 views

Using Webform on Taxonomy Page and using that Term's Values

Say I have a Vocabulary called Branches which has an email field. I wanted to attach a Contact webform to the pages of these Branches where an email will be sent directly to the email field value for ...
0
votes
0answers
19 views

Image alt tag not saving on save/edit

I have a content type for gallery photos which has a Image data type. When I create the content type Drupal ignores the alternate text I enter for any uploaded image. When I edit the content type ...
1
vote
0answers
32 views

Create a patch for core.libraries.yml

I noticed that core/jquery.cookie is referencing the jquery-cookie v1.4.1 library that is now no longer maintained. It is being superseded by js-cookie and so I would like to write a Drupal core patch ...
0
votes
0answers
22 views

Where are the “My Drafts” and “Needs Reviews” tabs?

I am experimenting in simplytest.me to see if Drupal will suit our needs. I have been testing the workbench moderation module to get the work flow that will be required (content editors and then ...
1
vote
1answer
36 views

How do I programmatically update a UUID?

Reason: Receiving uid does not exist error. Upon investigating, this error appears only when we edit or save the preexisting columns paragraph. If we create new columns paragraph, the error doesn't ...
0
votes
2answers
28 views

How to ignore opening quote in views sort

I use views to display a sorted list of book titles. Titles that begin with a quote are listed first. I want to ignore the quote for sorting purposes. So, instead of: "Once Upon a Time": Fairy Tales ...
0
votes
0answers
11 views

Drupal 8 webform translated. Webform-block on page selected/listed not showing up (where is the manual)?

Drupal 8! Webform module! I have made a drupal webform and added it to my webpage with creating a block. The block is restricted to the page by url. Everything worked well with this method. With ...
-1
votes
0answers
44 views

Drupal Console vs. Drush for Drupal 9 [on hold]

Initial Question: Are there advantages to using Drupal Console instead of Drush, because of Drupal 9? Revised Question after comments: Will any anticipated differences between Drupal 8 and 9 ...
1
vote
1answer
25 views

Behat @javascript test can not login user - incorrect username or password message

I am running: Drupal 7 Behat 3.5.0 Selenium 3.5.0 Chrome Driver 73.x Using this test: Feature: User Profile Background: Given users: | name | status | roles | | incomplete | 1 | ...
0
votes
2answers
74 views

Core doesn't update with Composer

We use commands: composer outdated drupal/* drupal/core 8.6.10 8.6.13 Drupal is an open source content management platform powering millions of websites and applications. It does show 8.6.13. We ...
-1
votes
0answers
14 views

How to configure simplenews to send HTML newsletters by email?

I'm using Drupal 8, simplenews module, and would like to send newsletters monthly in HTML format. The problem is that i tried to configure mimemail, htmlmail, and swiftmailer, all to HTML format, but ...
-1
votes
0answers
21 views

Testing content types on a site without having to create nodes

I have a bunch of Drupal sites on Drupal 8. My task is to test as a support admin of the site to check if the creation of nodes is possible. And if possible to actually create the nodes to prove it by ...
-1
votes
0answers
9 views

How to add a class to #edit-sort-bef-combine-wrapper in better exposed filters?

I would like to add css classes for the wrapper for bootstrap theming (something like col-lg-3 col-md-3 col-sm-4). I prefer to do it in the server-side rather than using javascript. How can I ...
0
votes
0answers
28 views

View filter if field contains a value?

I'm trying to filter my view based on data in a single field. My field targetuser contains a string of numbers: 47,505,100,20. I'm trying to setup the view so that if targetuser contains the logged ...
0
votes
0answers
14 views

Redirect old URL to new URL via htaccess with path

I am using HTTPS and WWW only rules in Drupal 7's .htaccess like: RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # ensure https RewriteCond %{...
1
vote
4answers
58 views

Master list of contrib modules?

Does there exist an updated master list of contrib modules in some easily parsed format (csv, json, xml ... whatever) that I can use for quick reference to see active full projects (not sandbox)? I'...
3
votes
2answers
90 views
+50

I cannot translate the action label

I'm using Umami profile and choose Spanish is default language. Almost of the interface has been translated into Spanish. But some places did not translate like user page. I'm going to admin/config/...
0
votes
0answers
18 views

Result should return a value greater than or equal to the selected facet

Here is the scenario. I have created a facet which list all GPA's (these are decimal numbers). e.g. 2.0, 2.5, 3, 3.5 etc. What I wanted is when say a user choose 2.5 GPA from the facet, the returned ...
-3
votes
0answers
28 views

How do I change header and footer based on URL?

I have a custom header and footer for the front page. I would like to change them for some pages. For example, initially I have the image a.png in the header; after clicking the entry form, the ...
0
votes
0answers
19 views

Custom handler isn't displayed in the handler list on the development server

Webform custom handler is not showing in DEV server but it works in local.It makes very difficult to save additional information. namespace Drupal\demo_module_dym\Plugin\WebFormHandler; use Drupal\...
-2
votes
0answers
14 views

Error using charts module [closed]

Uncaught ReferenceError: google is not defined at Object.attach (:19:7) at js_N4fLhFjtZJZS4nUHkdvhTjdi62SoNLE_KNAeLAAatNY.js:62 at Array.forEach () at Object.Drupal.attachBehaviors (...
0
votes
0answers
27 views

How to delete the cache files when the file cache module is installed

You have a site with the filecache module that saves the cache in files instead of the database. The filecache directory to date has a size of 30 Gigabytes. You want to disable the module filecache ...
0
votes
1answer
21 views

How do I retrieve media from a reference field?

Inside a node type, I have a reference field to target a media. With a db select, I need to load all related medias of the nodes. For this I use this code: $database = \Drupal::database(); $result = ...
0
votes
1answer
53 views

Why does updating break my site?

I have a site running Drupal 8.6.10. I installed it with Composer: composer create-project drupal-composer/drupal-project:8.x-dev JdP8M7b --stability dev --no-interaction I tried to update it to 8.6....

15 30 50 per page