All Questions

0
votes
0answers
2 views

How to retrieve form data?

How to retrieve advanced search form data? I tried following but didn't work: \Drupal::formBuilder()->getForm()
0
votes
0answers
3 views

How to change the labels TRUE and FALSE of a boolean field in views exposed filter

I am using the flag module to toggle a node type 'Task' as Done. I made a view that lists the tasks, and added a views exposed filter for the flag status, which is a boolean field. In this way users ...
0
votes
0answers
6 views

Problem using Font Awesome for a Custom text in a view

I have a custom entity (contract) created in a custom module (amap) by a bunch of BaseFieldDefinition. Here is the corresponding form: One of the field is a file defined this way $fields['file1'...
0
votes
0answers
6 views

How to disable core JS aggregation and AdvAgg just for admin paths

I help look after a site which uses $settings['file_public_base_url'] to serve files from a different subdomain on the frontend, but on the backend (admin paths like node/add and node/edit) this ...
0
votes
0answers
11 views

After installing RNG, getting “illegal choice detected” when trying to create an event type [on hold]

When creating a new event type after first installing the module on Drupal 8.6.12 and module version 1.6 (latest) the following message is given on screen: An illegal choice has been detected. Please ...
0
votes
1answer
14 views

How do I fix the errors I get after removing the comment field from a content type?

After I removed the comment field from the user interface, and uninstalled the Comments module, I can't open any Article node. In the Drupal log, I find this message. InvalidArgumentException: ...
0
votes
0answers
10 views

How do I set minimum and/or maximum total price for orders?

I've been looking around unsuccessfully for both a configuration or coding way to implement setting to block the checkout of an order if it doesn't meet minimum and/or maximum total price conditions. ...
1
vote
1answer
12 views

How to use articles attached images as background of a div

I'm doing my first site on Drupal 8 and I have a problem. I would like you to help me. In fact I'm trying to get the articles attached images as a background for a div created in the page templates. ...
-3
votes
1answer
13 views

When will doctrine ORM be implemented for modules?

I am looking at Drupal for some websites I want to set up. I have been a Symfony developer in the past so would like to use doctrine when I create a custom module. Is it implemented in 9 dev yet? Any ...
0
votes
1answer
15 views

Custom database connection

What is the best way to connect to a remote database through drupal? Would the correct method be to use the settings.php with the database in there, and use the built in db_select, db_query() etc ...
0
votes
0answers
20 views

Route Parameter Validation Problem

I have limited experience with D8 and custom routes. Current mobile video system for client takes a scheme-less url for the video like so https://example.com/mobile-video/some-video-desktop....
0
votes
0answers
16 views

How do I implement a donation functionality?

I'm looking to implement a donation functionality with Drupal 8 Commerce. My question is if there is a solution for Drupal 8 similar to the one Randy Fey described in his tutorial in 2011 for Drupal 7?...
0
votes
1answer
8 views

Using Views to categorize results

I have a view which is returning integers. Instead of presenting the actual values, I'd like to replace them with the name of a category. For example, all of smaller numbers (<100) are to be ...
0
votes
1answer
14 views

Send “Views PDF Display” generated PDF by mail as attachment

I have a drupal site with the Views PDF Display module on it. I can generate a custom PDF for my order, and all is nice, except for one things. I need to send those PDF one by one by mail as attached ...
0
votes
1answer
31 views

Can I safely delete the migrate tables after migration?

I passed a site from d7 to d8 I wanted to know if I can delete tables db migrate map d7 and migrate messages d7 they are more than a hundred I can delete db tables migrate map d7 and migrate d7 ...
0
votes
1answer
25 views

Output image src via JSON

I have worked out how to use dynamic routing and JsonResponse() in a custom controller to output pure JSON, with no HTML at all. I would like to do the same with an image — for the page to output an ...
0
votes
0answers
17 views

How to query custom entities in a many-to-many relationship

I have created two custom entities using the Drupal Console. These Entities will have a many to many relationship. My research tells me that a basefield can be created as an entity-reference via ...
-4
votes
1answer
27 views

If admin theme is 'seven' disable the module

So in a custom module, I'd like to check whether the theme is seven or not, if it's seven the module shouldn't load/work. Note: I have a module that shouldn't override half of UI of seven theme but ...
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
18 views

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

Is there any way to add all views or any specific views that will show in paragraph field like other paragraph bundle are showing.
-1
votes
0answers
23 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
28 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
27 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
15 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
14 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
43 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
43 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
25 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 ...
1
vote
1answer
51 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
26 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
37 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
54 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
19 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
25 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
21 views

Error messages not displaying with use-ajax-submit for existing content 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
29 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
34 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
18 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
31 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
35 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 ...

15 30 50 per page